List files
list_filesRetrieve a paginated list of files filtered by purpose, cursor, or API mode.
Instructions
List files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| limit | No | ||
| purpose | No | Optional file purpose filter. batch and batch_output cover Batch API files; user_data and vision cover TokenLab image/reference file bindings. Anthropic Files API mode is selected by Anthropic headers rather than this query parameter. | |
| after_id | No | Anthropic Files cursor. Return files after this public file id. Requires the Anthropic Files beta header and cannot be combined with before_id. | |
| scope_id | No | Reserved Anthropic Files scope cursor. TokenLab currently returns an explicit unsupported error rather than silently ignoring this value. | |
| before_id | No | Anthropic Files cursor. Return files before this public file id. Requires the Anthropic Files beta header and cannot be combined with after_id. | |
| anthropic-beta | No | Include files-api-2025-04-14 to use Anthropic Files API mode. |