Send input to a running program
operation_inputUse this to type into a program started with command_run interactive=true and still running (a REPL, ssh, a program waiting for input): it sends text to the program's input, waits briefly and returns the output that followed. Send one line at a time with its line break; eof=true ends the input. The program's earlier and later output stays readable with operation_output, and operation_cancel stops it.
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": {
"operationId": "<operationId>",
"childExecutionId": "<childExecutionId>"
},
"name": "operation_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eof | No | true: end the program's input after the text (a program that reads to the end then finishes). | |
| text | No | Text for the program's input. Include the line break a program expects after a line (\n), for example "print(2+2)\n". | |
| waitMs | No | How long to wait for the program's reply, 0-8000 ms (default 3000). The wait ends earlier once the output pauses for 0.3 s or the program ends. | |
| operationId | Yes | ||
| childExecutionId | Yes |