ReferenceRead
list_files
List library files
Lists the images, videos, 3D models and canvases of the user's awen Library, newest first, 50 at a time: every project shared with them, or one project. Pass a file's id to fetch to read its description, prompt and download link. Pass next_cursor back as cursor for the next page.
- Permission:
awen:read - Also an API operation:
POST /api/v1/list_files
Arguments
| Argument | Type | Required | What it is |
|---|---|---|---|
project_id | string | No | Only this project's files. |
type | "image" | "video" | "three_d" | "canvas" | No | Only files of this kind. |
cursor | string | No |
Call
A host sends a tools/call request to the MCP endpoint, with the arguments it needs.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "list_files", "arguments": {} }}Arguments schema
{ "type": "object", "properties": { "project_id": { "description": "Only this project's files.", "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "type": { "description": "Only files of this kind.", "type": "string", "enum": [ "image", "video", "three_d", "canvas" ] }, "cursor": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": []}Answer
The answer's structuredContent follows this schema, and its text holds the same JSON.
{ "type": "object", "properties": { "files": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "entry_id": { "type": "string" }, "kind": { "type": "string", "enum": [ "image", "video", "three_d", "canvas" ] }, "name": { "type": "string" }, "media_id": { "type": "string" }, "revision_id": { "type": "string" }, "project": { "type": "object", "properties": { "project_id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "project_id", "name" ], "additionalProperties": false }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "has_lineage": { "type": "boolean" }, "url": { "type": "string" } }, "required": [ "id", "entry_id", "kind", "name", "media_id", "revision_id", "project", "created_at", "updated_at", "has_lineage", "url" ], "additionalProperties": false } }, "next_cursor": { "type": [ "string", "null" ] } }, "required": [ "files", "next_cursor" ], "additionalProperties": false}