Run a shortcut by name with: shortcuts run "Shortcut Name"
Pass an input file with the -i / --input-path flag: shortcuts run "Shortcut Name" -i /path/to/input.txt
Capture output to a file with the -o / --output-path flag; the file extension hints the desired format: shortcuts run "Shortcut Name" -o /tmp/result.pdf
Inspect available sub-commands with: shortcuts help — valid commands include run, list, view, and sign.
Known gotchas
Shortcut names containing spaces must be quoted or have spaces escaped with a backslash.
The shortcuts command exits 0 on success and 1 on error; check $? in calling scripts to detect failures.
Shortcuts that require user interaction or display UI may stall when called from a non-GUI context such as a launchd daemon running as root.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp