ReferenceRead
list_folder
List a folder
Lists the folders and files directly inside a project folder, in name order, 50 at a time. Omit folder_id for the project root. Each item names its Drive entry (entry_id), its content (media_id) and its saved bytes (revision_id); pass its id to fetch to read it. Pass next_cursor back as cursor for the next page.
- Permission:
awen:read - Also an API operation:
POST /api/v1/list_folder
Arguments
| Argument | Type | Required | What it is |
|---|---|---|---|
project_id | string | Yes | The project's project_id, from list_projects or search. |
folder_id | string | No | A folder's entry_id; omit for the project root. |
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_folder", "arguments": { "project_id": "<string>" } }}Arguments schema
{ "type": "object", "properties": { "project_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "description": "The project's project_id, from list_projects or search." }, "folder_id": { "description": "A folder's entry_id; omit for the project root.", "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "cursor": { "type": "string", "minLength": 1, "maxLength": 32768 } }, "required": [ "project_id" ]}Answer
The answer's structuredContent follows this schema, and its text holds the same JSON.
{ "type": "object", "properties": { "project_id": { "type": "string" }, "project_name": { "type": "string" }, "folder_id": { "type": [ "string", "null" ] }, "folder_name": { "type": [ "string", "null" ] }, "path": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": [ "string", "null" ] }, "entry_id": { "type": "string" }, "kind": { "type": "string", "enum": [ "folder", "image", "video", "canvas", "three_d", "whiteboard", "file" ] }, "name": { "type": "string" }, "media_id": { "type": [ "string", "null" ] }, "revision_id": { "type": [ "string", "null" ] }, "item_count": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "null" } ] }, "url": { "type": "string" } }, "required": [ "id", "entry_id", "kind", "name", "media_id", "revision_id", "item_count", "url" ], "additionalProperties": false } }, "total_count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "next_cursor": { "type": [ "string", "null" ] } }, "required": [ "project_id", "project_name", "folder_id", "folder_name", "path", "items", "total_count", "next_cursor" ], "additionalProperties": false}