audit_bindings
Audit Figma node bindings under a root node against variable, spacing, padding, and height rules to return unbound or noncompliant design values.
Instructions
Audit the bindings under rootId against the measure rules, computed inside the plugin. DEFAULT RULES (all five apply when rules is omitted): (1) unbound: a spacing, padding, fixed width or height, radius, stroke weight, SOLID fill/stroke color or text without style that has no variable bound (itemSpacing counts only with 2 or more visible in-flow children and not with SPACE_BETWEEN; padding 0 and radius 0 are not flagged here; width and height count only when the sizing is FIXED); (2) primitive: a value bound to a variable of the primitive collection instead of a role variable; (3) not_multiple_of_4: itemSpacing, counterAxisSpacing, padding, fixed width and height, or a line height in px that is not a multiple of 4 (strokes and radii excluded; a width or height from 1 to 3 is treated as a hairline and skipped); (4) zero_padding: an auto layout frame, component or instance with children and a visible fill or stroke whose padding is 0 (one finding per side); (5) height_not_in_set: a height outside the default set 24, 32, 36, 44, 56, 64 (tolerance 0.0005; text, vectors, groups and similar nodes are skipped). Only the findings come back, as rows [nodeId, name, field, value, variable, rule] (see columns), after a totals-per-rule header. rules (default all five): unbound (spacing, padding, fixed width and height, radius, stroke weight, SOLID fill/stroke color or text without style, with no variable: itemSpacing counts when 2 or more children, padding 0 and radius 0 are not flagged here), primitive (bound to a variable of the collection primitiveCollection, default "Primitives", instead of a role), not_multiple_of_4 (itemSpacing, counterAxisSpacing, padding, fixed width and height, line height in px; strokes and radii excluded), zero_padding (auto layout frame with children and a visible fill or stroke whose padding is 0; one finding per side), height_not_in_set (height outside heightSet, default 24, 32, 36, 44, 56, 64; heightScope "components" (default) checks COMPONENT nodes and nodes whose height is bound, "all" checks every node but text, vectors, groups). Instance children are excluded unless excludeInstanceChildren is false. maxResults (default 200, max 5000; 0 = counts only, scans as far as the time budget goes) stops the scan when reached: PARTIAL with nextCursor, totals cover the nodes visited by this call only, add them up across calls. includeZeroRadius:true also flags an unbound radius of 0. Read only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rootId": "<rootId>"
},
"name": "audit_bindings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | ||
| cursor | No | nextCursor of a previous PARTIAL answer, to continue where it stopped | |
| rootId | Yes | ||
| heightSet | No | ||
| maxResults | No | ||
| heightScope | No | ||
| timeBudgetMs | No | Time budget of the plugin for this call in ms (default 60000, max 100000). When it is reached the answer says it is PARTIAL and gives nextCursor. | |
| includeZeroRadius | No | ||
| primitiveCollection | No | ||
| excludeInstanceChildren | No |