get_parent_schema
Retrieve the parent UI schema for a given node UID. Input the child's UID to obtain its parent schema.
Instructions
Get the parent UI schema of a node by UID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | UI schema UID of the child node |
Implementation Reference
- src/index.ts:83-84 (handler)The handler function for get_parent_schema tool. It receives a uid string, calls the NocoBase API endpoint /api/uiSchemas:getParentJsonSchema/{uid}, and returns the result as JSON text content.
async ({ uid }) => ok(await nocoFetch(`/api/uiSchemas:getParentJsonSchema/${uid}`)) ); - src/index.ts:79-82 (schema)Input schema for get_parent_schema. Defines a required 'uid' parameter (string) describing the child node's UID.
{ description: "Get the parent UI schema of a node by UID", inputSchema: { uid: z.string().describe("UI schema UID of the child node") }, }, - src/index.ts:77-84 (registration)Registration of the get_parent_schema tool using server.registerTool() with name 'get_parent_schema', description, input schema, and async handler.
server.registerTool( "get_parent_schema", { description: "Get the parent UI schema of a node by UID", inputSchema: { uid: z.string().describe("UI schema UID of the child node") }, }, async ({ uid }) => ok(await nocoFetch(`/api/uiSchemas:getParentJsonSchema/${uid}`)) ); - src/index.ts:394-401 (registration)MANUAL_TOOLS set includes 'get_parent_schema', which prevents the tool from being re-registered from the dynamic OpenAPI/Swagger spec generation.
const MANUAL_TOOLS = new Set([ "list_collections","get_collection","list_pages","get_page", "get_parent_schema","create_page","insert_new_schema","insert_adjacent_schema", "update_ui_schema","batch_patch_ui_schema","remove_ui_schema","save_as_template", "list_desktop_routes","get_flow_model","get_flow_model_by_parent","save_flow_model", "attach_flow_model","move_flow_model","duplicate_flow_model","destroy_flow_model", "get_js_block","update_js_block", ]);