simplify_context
Condense Figma frames into token-efficient representations for LLM context windows by stripping noise, collapsing wrappers, and truncating deep hierarchies.
Instructions
Produces an AI-optimized, token-efficient representation of a Figma frame. Strips noise, collapses wrappers, groups repeated elements, and truncates deep hierarchies. Designed to fit within LLM context windows.
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": {
"file_key": "<file_key>",
"access_token": "<access_token>",
"node_id": "<node_id>"
},
"name": "simplify_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | The frame node ID to simplify | |
| file_key | Yes | The Figma file key (from the file URL) | |
| framework | No | ||
| max_tokens | No | ||
| access_token | Yes | Your Figma personal access token |