send_line
Send a command line to an active PTY session, automatically appending a newline, and wait for the output until the session becomes quiet or a deadline expires.
Instructions
Send one newline-terminated line to a stateful PTY session.
Requires an existing session created via create_session(session_id, cwd).
After sending line + "\n", this drains newly produced PTY bytes until the
PTY is silent for PILOTY_QUIESCENCE_MS (default 1000ms) or until
deadline_s expires.
deadline_s must be at most 300 seconds.
Common SSH pattern:
create_session(session_id, cwd)
send_line(session_id, "ssh host", deadline_s=2)
wait_for_shell_prompt(session_id, deadline_s=30)
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>",
"line": "<line>"
},
"name": "send_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| deadline_s | No | Total wall-clock budget in seconds. Must be between 0 and 300. | |
| session_id | Yes |