---
title: "Submit Tool Result"
method: POST
path: "/api/v1/chat-ai/conversations/{conversation_id}/tool-result"
tags: ["chat-ai", "chat_messages"]
---

# Submit Tool Result

`POST /api/v1/chat-ai/conversations/{conversation_id}/tool-result`

Submit a tool result (e.g. user's ask_user selection) and resume streaming.

This endpoint:
1. Validates ownership
2. Finds the pending ask_user tool call on the last assistant message
3. Marks it completed and records the result
4. Constructs a ToolMessage and resumes the LangGraph agent
5. Streams the continuation via SSE (same event format as send_message)

## Path parameters

- `conversation_id` string, uuid, required

## Request body

- ToolResultRequest — Schema for submitting a tool result (e.g. user's ask_user selection).
  - `tool_call_id` string, required — OpenAI tool_call_id from the AIMessage
  - `tool_name` string, required — Name of the tool (e.g. ask_user)
  - `result` object, required — Structured result, e.g. {"selected_id": "opt1", "selected_label": "Option A"}

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/chat-ai/conversations/:conversation_id/tool-result/post.md)

---

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