cmd_shell
Run shell scripts on the owner's computer to inspect hardware, OS settings, apps, processes, network, disks, and files outside workspaces. Each script needs owner approval before execution.
Instructions
Run a script in the computer's shell (PowerShell or cmd on Windows, zsh or bash on macOS - chosen automatically unless you name one). This is the owner's real computer, and this can do anything the owner's user account can do, so EVERY call waits for the owner to read the script and approve it in the Waymark admin UI; it can never run by itself. The owner may edit the script before approving. USE IT for any question about the computer itself, not only projects: displays and monitors, hardware, OS version and settings, installed apps, running processes, network, disks, files outside a workspace. Leave workspace out for these system scripts. Do not tell the user you cannot reach their computer; run a read-only script instead. For project work prefer the typed tools (cmd_project, cmd_git, cmd_proc) when one fits: they are checked and can run without waiting. Write the script for the shell that will run it; a short script that does one thing is approved faster. Nothing can be typed to it while it runs. RETURNS: result and the end of the output; waits up to waitSeconds (the owner needs time to approve - use cmd_wait).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>",
"purpose": "<purpose>"
},
"name": "cmd_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional start folder: relative to the workspace, or a full path when no workspace is given. | |
| guide | No | true: put the commands guide first in the result. Use on your first commands call, or when told it changed. | |
| shell | No | Optional shell: pwsh, powershell, cmd, zsh, bash or sh. Leave empty to let Waymark pick the best one installed. | |
| script | Yes | The script text. | |
| purpose | Yes | One sentence: why you run this. The owner reads it before approving, sees it live, and it is kept in the audit log. | |
| workspace | No | Optional workspace name. With it the script starts in the workspace folder; without it the script is a system script and starts in the home folder. | |
| waitSeconds | No | Seconds to wait for the result before returning a run id (default 30, at most about 45). The command keeps running; use cmd_wait to wait longer. | |
| timeoutSeconds | No | Time limit in seconds (5-3600, default 300). |