list_media
Lists the files in the media library, newest first, without chat attachments, proof documents and knowledge files. Read-only. Use upload_file to add a file.
| Tool name | list_media |
| Permission | media:read |
readOnlyHint | true |
destructiveHint | false |
idempotentHint | true |
openWorldHint | false |
| REST call | GET /v1/media |
#What it does
- Only reads data. It changes nothing and sends nothing.
#Input
The tool takes one flat object. Path, query and body fields of the REST call are merged into it.
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Items per page (1 to 100, default 20). 1 to 100; default 20 |
cursor | string | no | next_cursor from the previous page. Opaque; only valid with the same filters. up to 300 characters |
kind | string | no | Only files of this kind. one of: image, video, audio, pdf, document |
usage | string | no | Only files with this usage, for example logo. up to 40 characters |
Arguments added by the MCP server (see Special arguments)
| Name | Type | Required | Description |
|---|---|---|---|
detail | string | no | concise (default): key fields per item. full: every field. one of: concise, full; default "concise" |
#Result
The result has the same content as the REST answer. Lists have at most 50 items per page (default 20); use cursor for the next page.
Errors come back as a tool result with isError: true. The error codes are the ones in Errors.