Read the full transcript of a run
opencode_messagesAudit subagent actions by retrieving the complete session conversation with every message and tool call from a run.
Instructions
Returns the complete conversation of a run's session — every message with its tool calls. Use this to audit what the subagent actually did when the summary is not enough.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"runId": "<runId>"
},
"name": "opencode_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | The runId of the run. | |
| maxChars | No | Truncate each message to this length (default 2000). |