import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { CplaceApiClient } from '../api.js'; export declare const SCRIPT_TOOL_DEFINITIONS: { readonly cplace_execute_script: { readonly description: "Execute JavaScript in a sandboxed cplace environment for data queries, calculations, and analysis.\n\n**Mode**: Read-only - actions are disabled. Any `cplace.actions()` call (e.g. `cplace.actions().updatePage(...)`) throws \"Actions not enabled for this script.\" Use cplace_execute_script_write for writes.\n\n**Timeout**: 30 seconds maximum execution time\n\n**Return Value Restrictions**:\n- Primitives: strings, numbers, booleans, null, dates (as ISO strings)\n- Nested arrays and objects up to 3 levels deep - e.g. an array of records `[{...}]`, or an object whose values are arrays of records `{tasks:[{...}], people:[{...}]}`\n- For data nested deeper than 3 levels, return `JSON.stringify(value)` and parse the string on the client\n- Cannot return cplace objects (Page, Person) directly - extract values first\n\n**Important**: This tool requires knowledge of the cplace low-code JavaScript API. Ensure you have access to cplace low-code documentation to write effective scripts."; readonly inputSchema: { readonly script: z.ZodString; }; readonly annotations: { readonly title: "Execute Script"; }; }; readonly cplace_execute_script_write: { readonly description: "⚠️ WRITE OPERATIONS ENABLED: Execute JavaScript that can create, modify, and delete pages.\n\nRequires low-code edit permission (mayEditLowCode). Use cplace_execute_script for read-only operations.\n\n**Timeout**: 30 seconds maximum execution time\n\n**Available Action APIs**:\n- cplace.actions().createPage(params) - Create new pages (space, customType and name are mandatory)\n- cplace.actions().updatePage(page, { customAttributes: { ... } }) - Set attribute values on a page\n- cplace.actions().deletePage(page) - Delete pages\n\n**Return Value Restrictions**: Same as read-only tool (nested arrays/objects up to 3 levels deep; use JSON.stringify for deeper data)\n\n**Important**: This tool requires knowledge of the cplace low-code JavaScript API. Ensure you have access to cplace low-code documentation to write effective scripts."; readonly inputSchema: { readonly script: z.ZodString; }; readonly annotations: { readonly title: "Execute Script (Write)"; }; }; }; export declare function registerScriptTools(server: McpServer, client: CplaceApiClient): void; //# sourceMappingURL=script.d.ts.map