Write to a command started with async
briq_exec_inputWrite to the stdin of a command started with briq_exec async and stdinOpen: a follow-up message, an answer, an approval (a JSON line to claude -p --input-format stream-json, a JSON-RPC request to an app server). eof: true closes it; the command then reads end of file. Writes land in order, 64 KB at most each. Pass seq (the last one plus one, as briq_exec_result shows) so that sending a write again after an error never writes it twice. Read what it answers with briq_exec_result and offset.
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": {
"briq": "<briq>",
"exec": "<exec>"
},
"name": "briq_exec_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eof | No | Close its input after this write | |
| seq | No | This write's number: the last one's plus one. A seq already taken writes nothing and says so | |
| briq | Yes | ||
| data | No | Text to write, newline included when the command reads lines | |
| exec | Yes | exec id (ex_…), from briq_exec | |
| base64 | No | Bytes to write, as base64; instead of data |