Set Annotations
annotation_setAppend annotations to one or more Figma nodes in a single batched call, with robust handling of partial failures and duplicate prevention.
Instructions
Append native annotations to one or more nodes in a batched call. If the status is 'partial_success', treat it as an incomplete operation and report the failed and skipped items to the user. Appending is NOT idempotent and a 'failed' row may already have appended its annotation (verified counts differ, or outcomeUnknown is true when post-state is unreadable; both carry partialMutation: true) — before retrying any non-success item, call annotation_list and compare the labels already on the node, or you will create a duplicate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| annotations | Yes | Array of annotations to set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | Overall status of the batch operation | |
| results | No | Detailed execution results with before/after annotation counts (one row per input, in input order) | |
| success | No | Whether all annotations were set successfully | |
| failedCount | No | Number of failed annotations | |
| skippedCount | No | Number of skipped annotations | |
| requestedCount | No | Number of requested annotations | |
| succeededCount | No | Number of succeeded annotations |