ad4m_get_neighbourhood
Get a shared AD4M Neighbourhood using its Perspective UUID.
Instructions
Read a shared AD4M Neighbourhood by Perspective UUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Perspective UUID |
Implementation Reference
- src/index.ts:352-367 (schema)TypeScript source registration of the tool using server.tool(), with input validation via zod schema (uuid as string) and the handler that queries the GraphQL perspective endpoint.
// 6. ad4m_get_neighbourhood server.tool("ad4m_get_neighbourhood", "Read a shared AD4M Neighbourhood by Perspective UUID.", { uuid: z.string().describe("Perspective UUID") }, async ({ uuid }) => { const data = await gql( `query Q($uuid: String!) { perspective(uuid: $uuid) { uuid name sharedUrl neighbourhood { author timestamp } } }`, { uuid } ); return ok(data.perspective); } );