extract
Extract a named subsystem from EN source code to create standalone EN source code for structural analysis.
Instructions
Extract a named subsystem as standalone EN source code.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | EN source code describing the system | |
| subsystem | Yes | Name of the subsystem to extract |
Implementation Reference
- src/index.ts:183-197 (handler)Registration and handler implementation for the 'extract' tool. It calls the generic callApi helper to communicate with the EN API.
server.tool( "extract", "Extract a named subsystem as standalone EN source code.", { source: z.string().describe("EN source code describing the system"), subsystem: z.string().describe("Name of the subsystem to extract"), }, async ({ source, subsystem }) => { const result = await callApi("extract", { source, subsystem }); return { content: [{ type: "text" as const, text: result.text }], isError: result.isError, }; } );