Preview what the person will see
previewRequestRenders the form or approval card exactly as a recipient sees it, at phone (390 px) and desktop (1280 px) width, and returns screenshots plus plain-language lint (contrast, long labels, missing help), and previewUrl, which opens the same page in a browser. Takes the form or approval fields of createRequest (no audience, expiresIn, webhookUrl or metadata), plus viewports and sampleData. Useful before creating a form many people will see.
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": {
"mode": "<mode>",
"title": "<title>"
},
"name": "previewRequest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| theme | No | Colours, font and layout: https://runitby.app/llms.txt ("Theme"). | |
| title | Yes | ||
| locale | No | Language of the hosted page and its emails, optionally with a region for dates, like "es-AR". Write the title and questions in the same language. | |
| schema | No | JSON Schema (type object) for forms. Supported types, formats, widgets and limits: https://runitby.app/llms.txt ("Schema subset"). | |
| approval | No | ||
| sections | No | ||
| requester | No | How your agent introduces itself, e.g. "Ava (the Acme refunds agent)". | |
| viewports | No | Screenshot widths: 390 (phone) and/or 1280 (desktop). | |
| sampleData | No | Answers to prefill, to see how filled fields look. |