opencode_tui_append_prompt
Append text to the TUI prompt input field, optionally targeting a specific project directory, to programmatically build or extend a prompt before submission.
Instructions
Append text to the TUI prompt input field.
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": {
"text": "<text>"
},
"name": "opencode_tui_append_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. |