open_class
Open InterSystems IRIS ObjectScript class documentation by class name to access detailed reference information and implementation examples for development.
Instructions
Abre Documatic por nombre de clase (ej. %Library.String).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class | Yes | Class name |
Implementation Reference
- src/request/call-schema.request.ts:62-77 (handler)Handler for the 'open_class' tool: extracts the class name from input arguments, validates it, fetches the class documentation using fetchClassDoc, and returns the content as text.case "open_class": { const className = args?.class as string; if (!className) { throw new Error("Class name is required"); } const doc = await fetchClassDoc(className); return { content: [ { type: "text", text: doc.text, }, ], }; }
- src/tools/open-class.tool.ts:3-17 (schema)Tool definition including name, description, and input schema for 'open_class', specifying a required 'class' string parameter with minLength 3.export const OPEN_CLASS: Tool = { name: "open_class", description: "Abre Documatic por nombre de clase (ej. %Library.String).", inputSchema: { type: "object", properties: { class: { type: "string", description: "Class name", minLength: 3, }, }, required: ["class"], }, };
- src/tools/core.tool.ts:18-22 (registration)Registers the OPEN_CLASS tool by importing and including it in the coreTools export's tools array.export const coreTools = async () => { return { tools: [SMART_SEARCH, SEARCH_OBJECTSCRIPT, OPEN_BY_KEY, OPEN_CLASS], }; };
- src/tools/core.tool.ts:2-2 (registration)Imports the OPEN_CLASS tool definition for use in core tools registration.import { OPEN_CLASS } from "./open-class.tool.js";