Skip to content

toAntigravityToolSchema

function toAntigravityToolSchema(node): Record<string, unknown>;

Defined in: core/src/schema.ts:312

Sanitize a JSON Schema to the OpenAPI 3.0 subset Google’s Cloud Code Assist (antigravity) accepts in its parameters field (type, nullable, description, format, enum, properties, items, required, anyOf). Mirrors cc-proxy’s clean_json_schema, including the { type: "string" } fallback when an array omits items.

Parameter Type
node unknown

Record<string, unknown>