import { ApiTool, figmaRequest } from "../../../lib/tools.ts"; const executeFunction = async ({ file_key }: any) => { return figmaRequest(`/v1/files/${file_key}/images`); }; const apiTool: ApiTool = { function: executeFunction, definition: { type: 'function', function: { name: 'get_image_fills', description: 'Get download URLs for all image fills (user-supplied images) in a Figma file.', parameters: { type: 'object', properties: { file_key: { type: 'string', description: 'The key of the Figma file.' } }, required: ['file_key'] } } } }; export { apiTool };