opencode_conversation
Retrieve a session's full conversation history, formatted for reading, using its session ID; optionally set a limit or target project directory.
Instructions
Get the full conversation history of a session, formatted for reading.
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": {
"sessionId": "<sessionId>"
},
"name": "opencode_conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| sessionId | Yes |