validate_path
Checks if a relative path is safe by ensuring it stays within the workspace, blocks traversal and symlink escapes, without touching the filesystem.
Instructions
Check whether a given relative path is valid and safe (no traversal, stays within the workspace, no symlink escape) without performing any read/write operation.
Args: path: Path to validate, relative to the workspace root.
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": "validate_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||