You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use tty=true only for commands that need interactive stdin; otherwise leave tty=false.
780
-
yield_time_ms waits for output until the process exits or the deadline is reached. It does not stop the process.
781
-
If the process is still running, the result includes a numeric session_id. Use WriteStdin to poll for more output or send input to tty=true sessions, and ExecControl to interrupt or kill it.
782
-
Output is only what was produced during this tool call's wait window.
783
-
With tty=false, stdout and stderr ordering is not guaranteed; use tty=true or redirect stderr with 2>&1 when terminal ordering matters."#
776
+
Ok(r#"Runs a shell command in a separate process.
777
+
778
+
TTY and stdin:
779
+
- tty=true allocates a PTY and gives the command terminal semantics. Use tty=true only for commands that need interactive stdin.
780
+
- tty=false runs without a PTY. Locally this uses pipe-backed stdio; remotely it uses a non-PTY SSH exec channel.
781
+
- With tty=false, no interactive stdin is attached, and input-waiting programs may see EOF instead of a prompt.
782
+
783
+
Waiting and continuation:
784
+
- yield_time_ms waits for output until the process exits or the deadline is reached. It does not stop the process.
785
+
- If the process is still running after `yield_time_ms`, the result includes a numeric session_id.
786
+
- Use WriteStdin to poll for more output or send input to tty=true sessions, and ExecControl to interrupt or kill it.
787
+
788
+
Output:
789
+
- Output is only what was produced during this tool call's wait window.
790
+
- With tty=false, stdout and stderr ordering is not guaranteed; use tty=true or redirect stderr with 2>&1 when terminal ordering matters."#
784
791
.to_string())
785
792
}
786
793
@@ -813,7 +820,7 @@ With tty=false, stdout and stderr ordering is not guaranteed; use tty=true or re
813
820
},
814
821
"yield_time_ms":{
815
822
"type":"number",
816
-
"description":"How long to wait for output before yielding. This does not stop the process."
823
+
"description":"How long to wait for output before yielding."
0 commit comments