opencode_tui_execute_command
Execute a slash command through the TUI to run OpenCode actions in a specified project directory, or default to the server project.
Instructions
Execute a slash command through the TUI.
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": {
"command": "<command>"
},
"name": "opencode_tui_execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. |