/** * Navigation tool: odoo_get_related * * Follows a relational field on a source record and fetches the related * record(s) from the target model. * * - many2one → value is [id, display_name] or false → read one record * - one2many / many2many → value is list of IDs → searchRead with limit * * Policy is checked on both the source model and the target model. */ import type { OdooClient } from '@marcfargas/odoo-client'; import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { type PolicyRule } from '../policy'; import type { McpCache } from '../cache'; import type { ToolDefinition } from './crud'; export interface NavigationToolContext { client: OdooClient; getPolicy: () => PolicyRule[]; cache: McpCache; } export declare function registerNavigationTools(server: McpServer, ctx: NavigationToolContext): void; export declare function createNavigationTools(ctx: NavigationToolContext): ToolDefinition[]; //# sourceMappingURL=navigation.d.ts.map