MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / createTokenDefsToolResponse

Function createTokenDefsToolResponse

packages/mcp-server/src/tools.ts:246–254  ·  view source on GitHub ↗
(
  payload: ToolResultMap['get_token_defs']
)

Source from the content-addressed store, hash-verified

244 description:
245 "Read a compact hierarchy and geometry outline for exact nodeId/nodeIds, exact page id/key, or the current selection. Exact roots are preserved before descendants consume the budget; options.depth: 0 returns roots only. Inspect errors and continue remainingNodeIds with nodeIds. Every x/y is relative to the node's actual Figma parent; page-query roots are page-relative. Includes stable keys on TemPad-managed nodes and exact page context for page queries. Set options.native for selected native read-back; this does not provide rendered pixels or general appearance.",
246 annotations: READ_ONLY_ANNOTATIONS,
247 parameters: GetStructureParametersSchema,
248 target: 'extension',
249 format: createStructureToolResponse
250 }),
251 hubTool({
252 name: 'upload_asset',
253 description:
254 'Store a generated PNG, JPEG, or GIF data URL in the local Hub and return its content-addressed assetHash for apply_canvas. Compose this call directly with the image-generation result; never print or copy encoded bytes into prose.',
255 annotations: ASSET_WRITE_ANNOTATIONS,
256 parameters: UploadAssetParametersSchema,
257 target: 'hub',

Callers 1

tools.test.tsFile · 0.90

Calls 3

isTokenDefsResultFunction · 0.85
toCallToolResultFunction · 0.85

Tested by

no test coverage detected