Get path info
get_path_infoCheck whether a file or folder exists and read its type, size, modification time, and permission mode in one read-only call on local or remote backends.
Instructions
Get the type, size, modification time and mode of one file or folder. Use when: checking that a path exists or what it is, or reading a mode. Instead: list_directory for a folder's entries; read_file for the contents. Behavior: read-only. Follows a symlink: the fields, name included, are the target's; is_link says the path itself is a link (local disk; remote backends report false). Nothing at path, or a dangling link, fails (list_directory on the parent shows the link). Time limit: 15 s. Returns: {name, is_dir, is_link, size, modified (ISO 8601 or null), mode (octal such as '0644', null without POSIX bits)}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_path_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The file or folder to describe (absolute, or relative to the MCP root). Required unless path_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | permission bits in octal, e.g. '0644'; null: none | |
| name | Yes | ||
| size | Yes | ||
| is_dir | Yes | ||
| is_link | Yes | ||
| modified | Yes | ISO 8601, or null |