opencode_message_get
Retrieve details of a specific message in an OpenCode session by providing its session ID and message ID, with optional project directory targeting.
Instructions
Get details of a specific message in a session
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>",
"messageId": "<messageId>"
},
"name": "opencode_message_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| messageId | Yes | Message ID | |
| sessionId | Yes | Session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |