(self)
| 240 | |
| 241 | @property |
| 242 | def description(self) -> str: |
| 243 | shell_examples = { |
| 244 | "Windows": """Execute PowerShell commands in foreground or background. |
| 245 | |
| 246 | For terminal operations like git, npm, docker, etc. DO NOT use for file operations - use specialized tools. |
| 247 | |
| 248 | Parameters: |
| 249 | - command (required): PowerShell command to execute |
| 250 | - timeout (optional): Timeout in seconds (default: 120, max: 600) for foreground commands |
| 251 | - run_in_background (optional): Set true for long-running commands (servers, etc.) |
| 252 | |
| 253 | Tips: |
| 254 | - Quote file paths with spaces: cd "My Documents" |
| 255 | - Chain dependent commands with semicolon: git add . ; git commit -m "msg" |
| 256 | - Use absolute paths instead of cd when possible |
| 257 | - For background commands, monitor with bash_output and terminate with bash_kill |
| 258 | |
| 259 | Examples: |
| 260 | - git status |
| 261 | - npm test |
| 262 | - python -m http.server 8080 (with run_in_background=true)""", |
| 263 | "Unix": """Execute bash commands in foreground or background. |
| 264 | |
| 265 | For terminal operations like git, npm, docker, etc. DO NOT use for file operations - use specialized tools. |
| 266 | |
| 267 | Parameters: |
| 268 | - command (required): Bash command to execute |
| 269 | - timeout (optional): Timeout in seconds (default: 120, max: 600) for foreground commands |
| 270 | - run_in_background (optional): Set true for long-running commands (servers, etc.) |
| 271 | |
| 272 | Tips: |
| 273 | - Quote file paths with spaces: cd "My Documents" |
| 274 | - Chain dependent commands with &&: git add . && git commit -m "msg" |
| 275 | - Use absolute paths instead of cd when possible |
| 276 | - For background commands, monitor with bash_output and terminate with bash_kill |
| 277 | |
| 278 | Examples: |
| 279 | - git status |
| 280 | - npm test |
| 281 | - python3 -m http.server 8080 (with run_in_background=true)""", |
| 282 | } |
| 283 | return shell_examples["Windows"] if self.is_windows else shell_examples["Unix"] |
| 284 | |
| 285 | @property |
| 286 | def parameters(self) -> dict[str, Any]: |
nothing calls this directly
no outgoing calls
no test coverage detected