file_exists
Check if a file or directory exists at a given path, returning true or false to support conditional operations.
Instructions
Check if a file or directory exists at the specified path. Returns true if exists, false otherwise. Useful for conditional operations. / 检查指定路径的文件或目录是否存在。存在返回 true,否则返回 false。用于条件操作。
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": "file_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to check for existence. Can be a file or directory path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exists | Yes |