write_to_terminal
Send text to an iTerm2 session. Optionally execute commands by appending a newline, or submit text without executing for interactive prompts.
Instructions
Send text to an iTerm2 session.
:param text: The characters to send.
:param session_id: Target session UUID. Defaults to the active session.
:param add_newline: If True (the default), appends \n so commands
execute. Set to False to type without submitting, e.g. when filling an
interactive prompt.
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": "write_to_terminal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| session_id | No | ||
| add_newline | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |