List media
list_mediaList uploaded media, newest first, 50 per page. target picks what the media is attached to: post (default), comment, task, or taskComment, with postId, commentId, taskId, or taskCommentId naming the parent. For post media, narrow with fileType, projectId, uploaderId (a user ID or me), createdAfter, createdBefore, or q (file name words), and sort by createdAt or fileSize with order. Each item shows isProcessing, hasError, and conversionStatus while a video or 3D model is still being prepared. Pass nextCursor back as cursor.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Words in the file name. | |
| sort | No | Default createdAt. | |
| limit | No | Page size. Default 50. | |
| order | No | Default desc. | |
| cursor | No | Previous nextCursor. | |
| postId | No | Only media attached to this post. | |
| target | No | What the media is attached to. Default post. | |
| taskId | No | Only media attached to this task (target task). | |
| fileType | No | File type, such as image or video. | |
| commentId | No | Only media attached to this comment (target comment). | |
| projectId | No | Post media only: this project, by ID or slug. | |
| uploaderId | No | Post media only: uploaded by this user, a user ID or "me". | |
| createdAfter | No | Media uploaded after this time. Epoch milliseconds or an ISO 8601 time with a timezone. | |
| createdBefore | No | Media uploaded before this time. Epoch milliseconds or an ISO 8601 time with a timezone. | |
| taskCommentId | No | Only media attached to this task comment (target taskComment). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| hasMore | No | ||
| nextCursor | No |