execute_command_async
Run long-running commands in the background and get a task ID to check status, fetch output, or cancel the operation.
Instructions
Execute a command asynchronously in the background. Returns a task ID immediately that can be used to check status, get output, or cancel the command. Use this for long-running commands. / 在后台异步执行命令。立即返回任务ID,可用于检查状态、获取输出或取消命令。用于长时间运行的命令。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Command arguments as a list of strings. | |
| user | No | The user to execute the command as. Leave empty to use the current user. | |
| command | Yes | The command to execute asynchronously. | |
| timeout | No | Command timeout in seconds. 0 means no timeout limit. | |
| work_dir | Yes | The working directory for command execution. | |
| permission_level | No | Permission level for the command (0-3). Higher levels allow more privileged operations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| task_id | Yes |