opencode_shell_execute
Run shell commands in an OpenCode session to delegate coding tasks, debugging, and refactoring across projects.
Instructions
Run a shell command through the opencode session
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent to use for the shell command | |
| command | Yes | Shell command to execute | |
| modelID | No | Model 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. | |
| sessionId | Yes | Session ID | |
| providerID | No | Provider ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |