Inspect changes made in a session
get_diffRetrieve file changes made by a delegated OpenCode session using the session ID to review edits and verify task output.
Instructions
Return the file changes made by a delegated session, as reported by OpenCode (GET /api/session/{id}/diff).
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_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session id returned by delegate_task/create_session. |