/** * Turn a tool's TypeBox/JSON-Schema `parameters` into a guided "Try it" form, * and assemble a typed args object back from the form values. Ported from the * v1 tools view so the run form works without needing the AI example endpoint. */ export type ParamField = { name: string; type: "string" | "number" | "integer" | "boolean" | "enum" | "json"; required: boolean; description?: string; enumValues?: (string | number)[]; raw?: Record; }; export declare function schemaToFields(schema: unknown): ParamField[] | null; export declare function placeholderFor(f: ParamField): string; export declare function argsToFormValues(fields: ParamField[], args: Record): Record; export declare function emptyFormValues(fields: ParamField[]): Record; export declare function buildArgsFromForm(fields: ParamField[], values: Record): Record; //# sourceMappingURL=param-fields.d.ts.map