chat

Submit tool execution result

Submits the result of a tool call execution from the frontend

post/api/tool/result

Request

  • Base URL: https://localhost:8080
  • URL: https://localhost:8080/api/tool/result
  • Auth: none declared

Request body

streamIdstring required

Stream ID for the chat session

toolCallIdstring required

Tool call ID to submit result for

resultobject

Tool execution result (required if error is not provided)

errorstring

Error message if tool execution failed (required if result is not provided)

Example request

{
  "streamId": "123e4567-e89b-12d3-a456-426614174000",
  "toolCallId": "call_abc123",
  "result": {
    "data": "result data"
  },
  "error": "Tool execution failed"
}

Response

Tool result received successfully

successboolean required

Whether the tool result was processed successfully

messagestring

Response message

Example response

{
  "success": true,
  "message": "Tool call result received (success)"
}

Changes

No recorded changes to this operation across all 1 revision of this API.