Generate payload schema
generate_payload_schemaGenerate TypeScript interfaces, Zod schemas, Pydantic models, or JSON Schema from webhook request bodies captured by a sandbox endpoint, inferring optional and nullable fields across requests.
Instructions
Generate TypeScript interfaces, Zod schemas, Pydantic models, or JSON Schema from the bodies of requests captured by a sandbox endpoint. Several requests of one event teach which fields are optional or nullable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpointSlug": "<endpointSlug>"
},
"name": "generate_payload_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Root type name (default: from the detected event, else WebhookPayload) | |
| path | No | Only requests with this path | |
| event | No | Only requests whose detected provider event matches, e.g. "invoice.paid" or "push". One event per schema gives the tightest types. | |
| limit | No | How many of the latest requests to read before filtering | |
| format | No | Output: "typescript" interfaces, "zod" schemas, "pydantic" models, or "json-schema" | typescript |
| method | No | Only requests with this HTTP method | |
| requestIds | No | Use exactly these requests instead of the latest ones | |
| endpointSlug | Yes | The endpoint slug |