Save a preview as a draft
claim_previewSave an unexpired anonymous preview into the authenticated organization as a draft. Requires an org API key or OAuth sign-in with the forms:write scope. Same save as POST /api/v1/tools/previews/{id}/claim. previewId is the token in previewUrl (/tools/p/{previewId}). Returns formId and editorUrl (/app/forms/{formId}). An unknown or expired preview is an error. A preview already saved by another organization is refused. Claiming the same preview again for this organization returns the same draft.
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": {
"previewId": "<previewId>"
},
"name": "claim_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| previewId | Yes | Preview id from previewUrl (/tools/p/{previewId}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formId | Yes | Draft form id saved from the preview. | |
| grader | No | Grade of the saved draft, when one was stored. | |
| editorUrl | Yes | Editor URL, /app/forms/{formId}. | |
| versionId | No |