opencode_conversation
Retrieve the full conversation history of any OpenCode session using its session ID. See every message with role and content to quickly review what was discussed and preserve context across coding tasks.
Instructions
Get the full conversation history of a session, formatted for easy reading. Shows all messages with their roles and content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages to return (default: all) | |
| directory | No | Absolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory. | |
| sessionId | Yes | Session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |