Search layers
search_layersFind layers across one composition or the entire project by name, type, effect, expression, label color, or 3D status, and return references for use in other tools.
Instructions
Find layers across all comps (or one comp) by any combination of: name (substring, or regex), layer type, effect (matchName or name substring), has an expression, label color index, 3D. Returns comp {id,name} + layer {index,id,name,type} refs you can pass to other tools. Read-only.
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_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to scan every composition in the project. | |
| name | No | Name substring (case-insensitive by default), a regex when regex=true, or '/re/flags'. | |
| type | No | Layer type(s): text, shape, solid, null, adjustment, precomp, footage, still, audio, camera, light. | |
| label | No | Label color index (0 = none, 1-16). | |
| limit | No | Max matches (default 200). | |
| regex | No | Treat 'name' as a regular expression. | |
| effect | No | Only layers with this effect: exact matchName (e.g. 'ADBE Gaussian Blur 2') or name substring. | |
| threeD | No | true = only 3D layers; false = only 2D layers. | |
| maxSeconds | No | Time budget in seconds (default 30). | |
| caseSensitive | No | Case-sensitive name match (default false). | |
| hasExpression | No | true = only layers with at least one expression; false = only layers without. |