opencode_diff
Retrieve change metadata for a specific file tracked during a session. Provide a filepath to get details on modifications made, with an optional session ID to target a particular work session.
Instructions
Returns change metadata for a specific file tracked during the session.
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": {
"filepath": "<filepath>"
},
"name": "opencode_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Relative or absolute path to the file. | |
| session_id | No | Session ID (defaults to active session). |