docs: clarify Windows exec shell syntax

Maintainer edit: document that Windows exec commands use PowerShell syntax by default and shell='cmd' is the cmd-specific escape hatch.
This commit is contained in:
chengyongru
2026-07-06 12:11:25 +08:00
committed by Xubin Ren
parent 220de320fb
commit d76493a63a
+2
View File
@@ -234,6 +234,8 @@ class ExecTool(Tool):
"inspection and apply_patch/write_file/edit_file for file changes "
"instead of cat, shell find/grep, echo, or sed. "
"Use -y or --yes flags to avoid interactive prompts. "
"On Windows, use PowerShell syntax by default; pass shell='cmd' "
"only for cmd-specific commands. "
"For long-running or interactive commands, pass yield_time_ms; "
"if the command keeps running, exec returns a session_id that can "
"be polled or written to with write_stdin. Output is truncated at "