Set description
figma_set_descriptionSet the description and optional documentation link shown in Figma's assets panel and Dev Mode for a component, set, local style, or variable; empty text clears it.
Instructions
Write the description (plain or markdown) and documentation link that the assets panel and Dev Mode show, on a component, component set, local style or local variable. A set's description is the one people see — put it there rather than on a variant. One https link at most; "" clears it. Variables take plain text only, no link. Library assets are read-only here. To rename: a component or set with figma_rename_node, a style with figma_update_style name, a variable with figma_set_variable_properties name. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| markdown | No | Treat `description` as markdown (bold, lists, links). Default false. | |
| targetId | Yes | A COMPONENT / COMPONENT_SET id, a style id ("S:…,") or a variable id ("VariableID:…"). | |
| description | No | The text. "" clears it. | |
| idempotencyKey | No | Caller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely. | |
| documentationLink | No | One https:// address. "" removes the link. |