shell-quote
Shell quoting for bash, PowerShell and cmd.exe with a parse-back check — Turns up to 50 literal strings into a safely quoted argument for bash/sh (POSIX single-quote method), PowerShell (single-quoted literal) and cmd.exe, for agents that build a command line from untrusted or free-form text, and parses each result back with a model of that shell's rules to prove it yields the original string. It returns unsupported for strings cmd.exe cannot carry safely (line break
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": {
"values": "<values>"
},
"name": "shell-quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Literal argument values; at most 100000 characters in total. | |
| targets | No | Shells to quote for; default all three. Status is unsupported when any requested target cannot carry a value. |