send_input
Send text to a running background command session to enable interactive control of long-running processes. Pair with output retrieval to complete the conversation loop.
Instructions
Send text input to a running background command job.
Use this together with read_output() to have a full interactive conversation with a long-running process:
Start a job with zebbern_exec(..., background=True)
send_input(session_id, "some command\n")
read_output(session_id) to collect the response
Args: session_id: The job identifier returned by zebbern_exec. input_text: The text to send to the session's stdin. Include a trailing newline (\n) if the target process expects one. session_type: Compatibility hint retained for existing clients.
Returns: dict with at minimum: - success (bool): whether the input was accepted - session_id (str): echo of the session targeted - error (str, optional): present only on failure
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_text | Yes | ||
| session_id | Yes | ||
| session_type | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |