check_lint_rule
Validate a custom JavaScript lint rule across all compositions, reporting load or runtime errors and rule findings so you can confirm it catches the intended design issue.
Instructions
Check a code rule the agent wrote with its own file tools: lint/.ts, a module that does export default { description, severity?, frames?, themes?, check(x) } written as plain JavaScript (no type annotations or imports: the web version runs it untranspiled, and everything it needs comes in x), for what a bound on one feature cannot say (a share of the frame, a relation between elements, a pixel measure). check gets x.doc (the compiled composition), x.groups (the composition itself, with an empty id, and the compositions nested in it, each with its elements), x.features(element) (every feature taste rules use; a nested composition's id gives its own), x.box(element), x.color (oklch, deltaE, contrast, family; a colour is a hex string or a pixel [r, g, b] from at) and, with frames: true, x.frames: the middle frame of each shot painted (light, or themes), with width, height, RGBA data and at(x, y) in composition pixels. It returns [{ message, fix?, layer?, t?, severity? }], reported as project/ on every composition and asset lint checks; guard_example proves one catches a bad example. With id: loads the file and runs it on every composition, and answers with what it finds on each now (with render, also the rules that read frames), or fails with why it does not load or run. Without id: every code rule and whether it loads.
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": "check_lint_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rule id: lint/<id>.ts | |
| render | No | Also paint frames for a rule that reads pixels |