Search library
search_librarySearch the user's library in Draftt (Guardados): the frames they saved from Explore and the images they or their team uploaded or imported, by what the images show, a HEX color, or likeness to another image (similar_to). The user sees the results as a visual grid. For when the user asks for their saves, uploads or references ("my red references", "what did I save for the car spot"). An item's url works in an edit_board image block or on slides. Only images are searched; the library holds no videos or PDFs here.
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_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | saved: frames saved from Explore (the catalog of commercials, music videos and films). uploads: files the user or their team uploaded or imported. Omit for both. | |
| limit | No | Max images (default 24) | |
| query | No | What to look for, in the user's words ("red car at night", "logo sketches"), or a HEX color alone ("#d23c2c"). Matches what each image shows, its visible text and its keywords. Omit to browse the latest. | |
| similar_to | No | The url of an image from a previous result: returns its lookalikes instead. | |
| workspace_id | No | Search one workspace's library (ids from list_workspaces). Omitted: the user's own space and every team they are in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| resource | Yes |