Get OpenCode session
opencode_session_getRetrieve metadata for one OpenCode session—title, agent, model, cost, tokens, timestamps, and outcome—to inspect or audit that session.
Instructions
Fetch one session's metadata: title, agent, model, cost, tokens, timestamps and outcome.
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_session_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionID | Yes |