directory_exists
Check whether a path exists and is a directory before reading or writing files. Resolves paths relative to the workspace root for safe filesystem validation.
Instructions
Check whether a given path exists and is a directory.
Args: path: Path to check, 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": "directory_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |