MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / description

Method description

mini_agent/tools/bash_tool.py:242–283  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240
241 @property
242 def description(self) -> str:
243 shell_examples = {
244 "Windows": """Execute PowerShell commands in foreground or background.
245
246For terminal operations like git, npm, docker, etc. DO NOT use for file operations - use specialized tools.
247
248Parameters:
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
253Tips:
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
259Examples:
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
265For terminal operations like git, npm, docker, etc. DO NOT use for file operations - use specialized tools.
266
267Parameters:
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
272Tips:
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
278Examples:
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]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected