opencode_file
Check which files an OpenCode agent changed after a prompt, inspect file contents, and list directories to review generated code.
Instructions
Check what files the OpenCode agent changed. Use 'status' AFTER a prompt to see which files were created/modified (like git status). Use 'read' to inspect specific file contents. Use 'list' to browse directories. This is your primary review tool — always check status after the agent writes code.
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": {
"action": "<action>"
},
"name": "opencode_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File/directory path (required for read and list) | |
| action | Yes |