import type { ActionSchema, AgentRelayActionDescriptor, JsonSchemaLiteObject } from '@agent-relay/sdk/actions'; import { z } from 'zod'; /** * Adapters between the JSON-schema-lite action schema format used by the Agent * Relay actions registry and the zod schemas the MCP SDK expects for tool input * validation. Also handles serializing descriptors for the `list_actions` tool. */ export declare function isSchemaObject(schema: ActionSchema | undefined): schema is JsonSchemaLiteObject; /** Convert a JSON-schema-lite node into an equivalent zod type. */ export declare function zodFromJsonSchema(schema: ActionSchema | undefined): z.ZodTypeAny; /** Build the MCP tool `inputSchema` (a zod shape) from an action input schema. */ export declare function actionToolInputSchema(schema: ActionSchema | undefined): Record; /** * Normalize raw MCP tool args into the shape the action handler expects: object * schemas pass through, while scalar/opaque schemas unwrap the `{ input }` envelope. */ export declare function actionInvocationInput(descriptor: AgentRelayActionDescriptor, args: unknown): unknown; /** Project an action descriptor into a JSON-serializable form for `list_actions`. */ export declare function serializableActionDescriptor(descriptor: AgentRelayActionDescriptor): Record; //# sourceMappingURL=action-schema.d.ts.map