---
title: "Read visible messages, answers and result links in an owned agent's conversation"
method: POST
path: "/api/mcp/tools/get_agent_conversation"
tags: ["tools"]
---

# Read visible messages, answers and result links in an owned agent's conversation

`POST /api/mcp/tools/get_agent_conversation`

## Request

- Base URL: `https://finestructure.ai`
- URL: `https://finestructure.ai/api/mcp/tools/get_agent_conversation`
- Auth: HTTP bearer

Read visible messages, answers and result links in an owned agent's conversation. Returns the newest page in chronological order. For older history, pass next_before_id as before_id. For new replies, omit before_id.

## Request body

- object
  - `agent_id` string, required: Owned agent ID from list_agents.
  - `conversation_id` string, required: Conversation ID returned by these tools.
  - `limit` integer
  - `before_id` string

## Response `200`

Tool executed successfully

- ToolResult
  - `ok` boolean, required
  - `tool` string, required
  - `result` object, required

## Other responses

- `400`: Invalid arguments for this tool
- `401`: Missing or invalid bearer token
- `402`: Not enough credits on the account
- `403`: Token scope does not permit this tool
- `404`: Unknown tool name
- `429`: Rate limit exceeded, retry after the indicated delay
- `500`: Internal error while executing the tool

---

[API](https://skmtc.dev/finestructure/apis/fine-structure-api.md) · [All operations](https://skmtc.dev/finestructure/apis/fine-structure-api/llms.txt) · [OpenAPI document](https://skmtc.dev/finestructure/apis/fine-structure-api/revisions/02c50ed5fd70?raw)
