get_thread
Retrieve complete conversation history and details for a specific thread on the402.ai, including agent-provider messages, price proposals, status updates, and delivery information.
Instructions
Get full details and message history for a specific thread on the402.ai. Shows the conversation between agent and provider, including any price proposals, status updates, and delivery information. Requires API key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | The thread ID |
Implementation Reference
- src/tools/threads.ts:65-79 (handler)The handler and registration for the 'get_thread' tool.
server.tool( "get_thread", "Get full details and message history for a specific thread on the402.ai. Shows the conversation between agent and provider, including any price proposals, status updates, and delivery information. Requires API key.", { thread_id: z.string().describe("The thread ID"), }, async ({ thread_id }) => { const result = await client.authGet(`/v1/threads/${thread_id}`); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } );