opencode_send
Send raw text or keystrokes to an OpenCode CLI session to provide input, confirm prompts, or navigate the terminal interface.
Instructions
Sends raw text or keystrokes to the PTY. Supports , , , , , , , , .
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": {
"input": "<input>"
},
"name": "opencode_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text or key sequence (e.g. 'yes<enter>' or '<ctrl-c>'). | |
| session_id | No | Session ID (defaults to active session). |