---
title: "Deliver a frontend tool execution result."
method: POST
path: "/frontend-tools/result"
tags: ["FrontendTools"]
---

# Deliver a frontend tool execution result.

`POST /frontend-tools/result`

Deliver the result of a frontend tool execution from the customer's app. Called by the Gleap SDK.
Requires the project API key in the `api-token` header plus a valid widget session
(`gleap-id`/`gleap-hash` headers); returns 401 otherwise and 403 if the calling domain is not an
allowed widget domain. `result`/`error` payloads above 50,000 characters are rejected with 400;
accepted payloads are truncated to 20,000 characters before being handed to the agent.
(Gleap.registerAgentTool handler) back to the awaiting agent.

## Request body

- object
  - `error` string
  - `result` unknown
  - `toolCallId` string, required

## Response `200`

Ok

- DeliverFrontendToolResultResponse
  - `delivered` boolean, required

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/versions/2bfe054193b5/schema)
