Find image assets
search_assetsFinds images to put into template image inputs: the ready PNG, JPEG and WebP files under 5 MB in the workspace, one page at a time, each with a previewUrl. With no filters it lists the most recently updated images and also names every image collection (named groups of images) with its ID and image count. collection keeps one collection's images, given by its name (ignoring case) or ID: when the user says where their images are ("the Diwali photos"), pass that name. query matches file names, and both combine. A collection name that matches none is refused with the workspace's collection names. Each image comes with its pixel width and height when known. An asset's id is what an image input takes in batch rows. inspect_image shows a previewUrl, and upload_images adds the user's own files. Needs assets:read.
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": "search_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1 | |
| limit | No | Results per page (default 8); values above 12 are capped at 12 | |
| query | No | Filename text to search for, 2 to 100 characters; omit to browse | |
| collection | No | A collection's name (ignoring case) or ID; limits results to it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| items | Yes | ||
| limit | Yes | Page size actually applied | |
| total | Yes | Count of all matches across every page | |
| collections | No | Every image collection, when no filter is given (most recently updated first) |