update_styles
Change styles on one or more design nodes in a batch call, using CSS-like properties and design tokens. Accepts paper-gen:// URLs for AI image generation when explicitly requested.
Instructions
Update styles on one or more nodes. Use this for targeted style changes. Supports design tokens as CSS variables. Supports batch updates in a single call.
Setting the top / left styles of an artboard changes its position on the canvas.
Anywhere urls are accepted, paper-gen:// URLs can be used to generate images with AI. ONLY use when the user explicitly asked for image generation. Read "image-generation" guide first via get_guide.
Styles you set that are inert in the node's context are dropped rather than applied; their keys are returned under the ignoredStyles property.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional. The Paper file ID this call should act on. Pass it to reliably target a specific file when several are open at once (e.g. multiple agents from the same session working in parallel). Omit to use the most recently opened file in the session. | |
| updates | Yes | Array of style updates to apply. Each item specifies node IDs and styles to apply to all of them. |