opencode_context
Retrieve the operation log and file changes tracked for the current or specified OpenCode session, helping you audit activity and understand what was modified during a task.
Instructions
Returns the operation log and file changes tracked for this session.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opencode_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last_n | No | Max number of operation log entries (default 50). | |
| session_id | No | Session ID (defaults to active session). |