get_file_info
Retrieve metadata for one file or folder by node ID or absolute path, including size, MIME type, SHA-256, path, and folder subtree counts. Read-only and cheap; use it before reading or downloading files.
Instructions
Get metadata for one file or folder, identified by node_id or absolute path: id, parent_id, name, kind, size, MIME type, SHA-256, path and updated_at. Folders also report subtree_bytes and subtree_count (stats_stale is true while they are being recalculated). Read-only and cheap. To read contents use read_text_file or read_document_text; to download use prepare_download. Requires files:read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | absolute node path instead of node_id | |
| node_id | No | Gopan node UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| mime | No | ||
| name | Yes | ||
| path | No | ||
| size | No | ||
| sha256 | No | ||
| parent_id | No | ||
| updated_at | Yes | ||
| stats_stale | No | ||
| subtree_bytes | No | ||
| subtree_count | No |