terminal_write
Sends text, commands, or character input to a terminal session so AI agents can interact with a live shell; read the session afterward to view command output.
Instructions
Send text input to a terminal session. This is used for typing commands, text, or any character input. The terminal will process this input as if typed by a user. Always follow up with read_from_terminal to see the results and any output generated by the command.
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": {
"sessionId": "<sessionId>",
"input": "<input>"
},
"name": "terminal_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text input to send to the terminal. Can be commands, text, or any character sequence. Examples: "ls -la", "cd /home", "npm install", "echo hello" | |
| sessionId | Yes | Terminal session ID to send input to |