get_session_detail
Retrieve complete details for a specific OpenCode session, including metadata, original task, files modified, and the last assistant message.
Instructions
Get full details of a specific session.
Returns metadata, original task (first user prompt), files modified, and the last assistant message.
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": "get_session_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID (e.g. 'ses_abc123') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||