figma_get_current_context
Detect the Figma file currently open in the Figma desktop app and retrieve its fileKey, nodeId, and instructions for further actions.
Instructions
LOCAL TOOL — Call this FIRST before any other Figma tool when the user has not explicitly provided a Figma URL or fileKey. Do what: Detects which Figma file the user currently has open in Figma desktop app, returning fileKey, nodeId, and instructions. Expected output: JSON with { authentication, figma_desktop_open_file: { fileKey, fileName, nodeId, url }, instructions[] }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_get_current_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||