Audit a path for traversal outside a root
audit_pathDetect path traversal, encoded traversal, and length violations by lexically resolving a supplied path against an absolute root—no filesystem reads.
Instructions
Resolve a caller-supplied path inside an absolute root with pathcage and report traversal, encoded traversal, symlink-independent lexical escapes, and length violations. This is lexical and does not read the filesystem.
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": {
"path": "<path>"
},
"name": "audit_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| root | No | ||
| decodeCheck | No | ||
| maxPathLength | No |