opencode_get_messages
Retrieve message history from an opencode session.
Instructions
Retrieve message history from an opencode session.
Returns the conversation transcript between the user and the agent.
Return Format
{"success": bool, "message": str, "data": {"messages": [{"role": str}]}}
Examples
opencode_get_messages(session_id="sess_01", limit=100)
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_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages to retrieve | |
| session_id | Yes | Session ID to retrieve messages from |