text

Quote a value safely for a shell, and report what would have gone wrong unquoted.

Interpolating a value into a command line is the most common way an agent turns a correct plan into the wrong action. Adding one unescaped parser between the model and the shell has been measured to drop task success by 55 to 73 percentage points, and the damage is usually invisible because the command still runs — just not on what was intended. This applies the quoting rules for the named shell and, separately, names every hazard the raw value contained, so the caller learns which construct was dangerous rather than only receiving an escaped string.

post/v1/shell/quote

Request

  • Base URL: https://fluentedi.com
  • URL: https://fluentedi.com/v1/shell/quote
  • Auth: none declared

Request body

valuestring required

The value to quote. Pass one argument, not a whole command line.

shell'sh' | 'bash' | 'cmd' | 'powershell'

Target shell.

Response

Tool result.

okboolean
toolstring
resultobject

Tool-specific result payload.

Changes

No recorded changes to this operation across all 1 revision of this API.