---
title: "Submit tool execution result"
method: POST
path: "/api/tool/result"
tags: ["chat"]
---

# Submit tool execution result

`POST /api/tool/result`

## Request

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

Submits the result of a tool call execution from the frontend

## Request body

- ToolResultDto
  - `streamId` string, required: Stream ID for the chat session
  - `toolCallId` string, required: Tool call ID to submit result for
  - `result` object: Tool execution result (required if error is not provided)
  - `error` string: Error message if tool execution failed (required if result is not provided)

## Response `200`

Tool result received successfully

- ToolResultResponseDto
  - `success` boolean, required: Whether the tool result was processed successfully
  - `message` string: Response message

## Other responses

- `400`: Invalid request data
- `404`: Tool call not found or expired

---

[API](https://skmtc.dev/opencase/apis/opencase-backend-api.md) · [All operations](https://skmtc.dev/opencase/apis/opencase-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/opencase/apis/opencase-backend-api/revisions/c66ef2d8dc00?raw)
