opencode_command
Send a command or text to OpenCode and submit it with Enter to delegate tasks as a subagent. Use session_id to target a specific session or default to the active one for multi-session orchestration.
Instructions
Sends a command or text to OpenCode and submits it with Enter.
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_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command string. | |
| session_id | No | Session ID (defaults to active session). |