files.list
List file metadata with filters by project, tag, folder, favorite, or untagged status. Shows token sizes and content class for each file, helping you budget context before reading.
Instructions
List file metadata with optional filters (project_id, tag, favorite, folder, untagged, kind) and pagination. Read-only; no side effects, auth, or rate limits. Each row is annotated with tags, est_tokens, size_bytes, and content_class; the response includes total_est_tokens so you can budget before reading bodies. project_id: null returns ONLY Knowledge Base files; omit the field to span everything; kind narrows to one content class. Use to browse known structure; for keyword/content lookup use files.search; for a denser whole-vault dump use projects.map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by tag name | |
| kind | No | Filter by content class. dictionary = authoritative KB, note = informational KB, journal = time-log, project = project file. | |
| limit | No | Maximum number of results | |
| folder | No | Filter by folder path | |
| offset | No | Offset for pagination | |
| favorite | No | Filter by favorite status | |
| untagged | No | If true, return only files that have no tags. Useful for bulk-tagging workflows. | |
| project_id | No | Filter by project ID. Pass null to list ONLY Knowledge Base files (project_id IS NULL). |