List files
list_filesRetrieve a paginated list of files, filterable by purpose (batch, user data, vision) and cursor-based pagination. Use for managing stored uploads.
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 co… | |
| after_id | No | Anthropic Files cursor. Return files after this public file id. Requires the Anthropic Files beta h… | |
| scope_id | No | Reserved Anthropic Files scope cursor. TokenLab currently returns an explicit unsupported error rat… | |
| before_id | No | Anthropic Files cursor. Return files before this public file id. Requires the Anthropic Files beta … | |
| anthropic-beta | No | Include files-api-2025-04-14 to use Anthropic Files API mode. |