List a space's files
list_space_filesList every file in a space, including root-level files missed by per-page attachment lists. Filter by page ID or root to find synced or imported files.
Instructions
List every file stored in a space, including the ones parented to the space ROOT rather than to a page — those are invisible to list_attachments (which is per-page), so this is the only way to discover a file that was synced or imported beside the page tree. Each entry carries the same links: download_url for the bytes, share_url to give a person, plus parent_page_id/parent_title (absent = the space root). Filter with parent_page_id: a page id for that page's files, "root" for the root only. Read-only; any space role. Capped at 500 files (truncated says so).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | space whose files to list | |
| parent_page_id | No | optional filter: a page id for that page's files, or "root" for files parented to the space root; omit for every file in the space |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| truncated | No |