get_node
Retrieve a knowledge node by ID to access its content, connections, suggestions, and environment badges from the Agent-hive knowledge graph.
Instructions
Get a knowledge node by ID. Returns the node, its edges, gotchas, also_needed suggestions, and works_on env badges.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Node UUID |
Implementation Reference
- src/mcp/server.ts:212-224 (handler)The `get_node` tool is defined and implemented in `src/mcp/server.ts`. It takes a node ID as input, fetches the node data from `/api/v1/nodes/${args.id}`, and returns it as a formatted text response.
// Tool: get_node server.tool( "get_node", "Get a knowledge node by ID. Returns the node, its edges, gotchas, also_needed suggestions, and works_on env badges.", { id: z.string().describe("Node UUID"), }, async (args) => { await ensureApiKey(); const result = await apiGet(`/api/v1/nodes/${args.id}`); return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] }; }, );