check_path
Check whether a path may be stored in a workspace. Use it before writing a generated or imported file name; it applies the same rule as the service and the sandbox daemon, and reads no workspace. Returns valid, and the reason when the path is refused.
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": "check_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | the path, relative to the workspace root |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | the path that was checked | |
| valid | Yes | true when the service would accept it | |
| reason | Yes | why it is refused, or null |