search_objectscript
Find ObjectScript documentation and code examples from the local cache to help developers implement solutions quickly.
Instructions
Search for ObjectScript documentation and examples (solo en caché local)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query |
Implementation Reference
- src/request/call-schema.request.ts:28-43 (handler)Handler logic for the search_objectscript tool: extracts the query parameter, validates it, calls searchInCache, and returns formatted text results.case "search_objectscript": { const query = args?.q as string; if (!query) { throw new Error("Query is required"); } const results = await searchInCache(query); return { content: [ { type: "text", text: `Resultados de búsqueda para "${query}":\n\n${results}`, }, ], }; }
- Tool definition including name, description, and input schema (JSON Schema) for the search_objectscript tool.export const SEARCH_OBJECTSCRIPT: Tool = { name: "search_objectscript", description: "Search for ObjectScript documentation and examples (solo en caché local)", inputSchema: { type: "object", properties: { q: { type: "string", description: "Search query", minLength: 2, }, }, required: ["q"], }, };
- src/tools/core.tool.ts:18-22 (registration)Registers the SEARCH_OBJECTSCRIPT tool in the coreTools function that returns the list of available tools.export const coreTools = async () => { return { tools: [SMART_SEARCH, SEARCH_OBJECTSCRIPT, OPEN_BY_KEY, OPEN_CLASS], }; };