opencode_session_summarize
Summarize a coding session by specifying its ID and a model, producing a concise recap of the session's activity and outcomes.
Instructions
Summarize a session using a specified model. NOTE: This is a long-running operation that may take 30-60+ seconds.
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": {
"id": "<id>",
"providerID": "<providerID>",
"modelID": "<modelID>"
},
"name": "opencode_session_summarize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session ID | |
| modelID | Yes | Model ID (e.g. 'claude-3-5-sonnet-20241022') | |
| variant | No | Model variant (e.g. 'fast', 'smart') | |
| 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. | |
| providerID | Yes | Provider ID (e.g. 'anthropic') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |