opencode_session_diff
Retrieve the diff of code changes for a session, optionally filtered to a specific message, to review what was modified.
Instructions
Get the diff for a session, optionally for a specific message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session ID | |
| 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. | |
| messageID | No | Message ID (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |