smartchat

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 namelist_media
Permissionmedia:read
readOnlyHinttrue
destructiveHintfalse
idempotentHinttrue
openWorldHintfalse
REST callGET /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.

NameTypeRequiredDescription
limitintegernoItems per page (1 to 100, default 20). 1 to 100; default 20
cursorstringnonext_cursor from the previous page. Opaque; only valid with the same filters. up to 300 characters
kindstringnoOnly files of this kind. one of: image, video, audio, pdf, document
usagestringnoOnly files with this usage, for example logo. up to 40 characters

Arguments added by the MCP server (see Special arguments)

NameTypeRequiredDescription
detailstringnoconcise (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.