Returns {
description: string;
input_schema: {
additionalProperties?: boolean;
properties: Record<
string,
| objectOutputType<
{
description: ZodOptional<ZodString>;
enum: ZodOptional<ZodArray<ZodString, "many">>;
type: ZodEnum<
[
"string",
"number",
"boolean",
"object",
"array",
"null",
"integer",
],
>;
},
ZodTypeAny,
"passthrough",
>
| {
anyOf: objectOutputType<
{
description: ZodOptional<ZodString>;
enum: ZodOptional<ZodArray<(...), (...)>>;
type: ZodEnum<[(...), (...), (...), (...), (...), (...), (...)]>;
},
ZodTypeAny,
"passthrough",
>[];
},
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
name: string;
}
an Anthropic tool definition
Creates an Anthropic tool definition