get_last_turns
Read the newest turns of an agent's transcript.
read-onlyidempotentMCP toolAgent
A long turn is cut from its start to fit max_bytes.
Calling it#
curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/GetLastTurns \
-H 'Content-Type: application/json' \
-d '{
"agent_id": "<agent_id>"
}'komrad rpc get-last-turns \
--agent-id '<uuid>'{
"name": "get_last_turns",
"arguments": {
"agent_id": "<agent_id>"
}
}Offered by the komrad MCP server to writer, reviewer, orchestrator agents.
Request#
GetLastTurnsRequest#
| Field | Type | Description |
|---|---|---|
agent_id | uuid* | The agent whose transcript to read, by id. |
turns | int32 between 1 and 20 | How many of the newest agent turns to return, with the prompts between them. Unset returns the last turn only. |
max_bytes | int32 at least 0 | The most bytes to return for each turn. A longer turn loses its start, so its end stays. Unset uses the default. |
Response#
GetLastTurnsResponse#
Types#
Turn#
Turn is one turn of an agent's transcript.