opencode_get_history
Retrieve the complete message history for a coding session, including roles, content, and timestamps, to review prior exchanges before continuing.
Instructions
Return the full message history for an opencode session (tracked in-process).
Each message has: role (user/assistant), content, timestamp. Use this to review what has been sent and received before sending the next message.
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": {
"session_id": "<session_id>"
},
"name": "opencode_get_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID to retrieve history for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||