Call raw Figma Plugin API
figma.call_apiExecute any Figma Plugin API method on a selected target, such as a node or page, to inspect or modify the design.
Instructions
Dynamically call any Plugin API method on figma, a node, page, style, variable, or API namespace.
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": {
"target": "<target>",
"method": "<method>"
},
"name": "figma.call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| method | Yes | ||
| nodeId | No | ||
| pageId | No | ||
| target | Yes | ||
| styleId | No | ||
| imageHash | No | ||
| targetPath | No | ||
| variableId | No | ||
| variableCollectionId | No |