import { ApiTool, figmaRequest } from "../../../lib/tools.ts"; const executeFunction = async ({ file_key }: any) => { return figmaRequest(`/v1/files/${file_key}/component_sets`); }; const apiTool: ApiTool = { function: executeFunction, definition: { type: 'function', function: { name: 'list_component_sets', description: 'List all component sets published in a specific Figma file.', parameters: { type: 'object', properties: { file_key: { type: 'string', description: 'The key of the Figma file to retrieve component sets from.' } }, required: ['file_key'] } } } }; export { apiTool };