opencode_message
Read an OpenCode session's conversation history to review the agent's reasoning, tool calls, and code changes after a prompt completes, or fetch a specific message before accepting changes.
Instructions
Read the conversation history from an OpenCode session. Use 'list' AFTER a prompt completes to see what the agent did — its reasoning, tool calls, and code changes. Use 'get' for a specific message. Essential for reviewing the agent's work before accepting changes.
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": {
"action": "<action>",
"sessionId": "<sessionId>"
},
"name": "opencode_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages to return (list only) | |
| action | Yes | ||
| messageId | No | Message ID (required for get) | |
| sessionId | Yes | Session ID |