List Files
openai_list_filesList OpenAI project files with pagination and purpose filters to retrieve metadata like ID, filename, size, and creation timestamp.
Instructions
List all files in your OpenAI project with pagination and optional purpose filter.
Returns metadata about each uploaded file including its ID, filename, size, purpose, and creation timestamp. Use the 'purpose' parameter to filter by type (e.g., "assistants", "fine-tune", "batch").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor for pagination. | |
| limit | No | Maximum number of files to return (1–10000, default 10000). | |
| order | No | Sort order by created_at timestamp. | desc |
| purpose | No | Only return files with the given purpose. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable. | markdown |