open_by_key
Access InterSystems IRIS ObjectScript documentation pages using their official document keys to quickly retrieve specific technical information and reference materials.
Instructions
Open a documentation page by its official KEY
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Document key |
Implementation Reference
- src/request/call-schema.request.ts:45-60 (handler)The switch case handler for the 'open_by_key' tool, which validates the input key, fetches the document content using fetchDocByKey, and returns it formatted as MCP content.case "open_by_key": { const key = args?.key as string; if (!key) { throw new Error("Key is required"); } const content = await fetchDocByKey(key); return { content: [ { type: "text", text: content.text, }, ], }; }
- src/tools/open-by-key.tool.ts:3-17 (schema)Defines the MCP tool metadata including name, description, and input schema requiring a 'key' parameter (string, min length 3).export const OPEN_BY_KEY: Tool = { name: "open_by_key", description: "Open a documentation page by its official KEY", inputSchema: { type: "object", properties: { key: { type: "string", description: "Document key", minLength: 3, }, }, required: ["key"], }, };
- src/tools/core.tool.ts:18-22 (registration)Registers the 'open_by_key' tool (imported as OPEN_BY_KEY) in the core tools list returned by coreTools function.export const coreTools = async () => { return { tools: [SMART_SEARCH, SEARCH_OBJECTSCRIPT, OPEN_BY_KEY, OPEN_CLASS], }; };