Write Session
write_sessionSends commands or input to an active terminal session, enabling AI agents to interact with running processes; optionally masks sensitive input in history.
Instructions
Writes input data to an active terminal session.
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": {
"session_id": "<session_id>",
"data": "<data>"
},
"name": "write_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Command or input string to send. | |
| session_id | Yes | ID of the active session. | |
| is_sensitive | No | If True, masks the input as [REDACTED] in recorded history. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||