Record preview choice
set_preview_consentRecord the merchant’s answer from the preview consent card, with the answer code only that card receives.
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": {
"draft": "<draft>",
"scope": "<scope>",
"state": "<state>",
"answer": "<answer>"
},
"name": "set_preview_consent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | The draft’s fudge://project/… ref. | |
| scope | Yes | project: this draft only; site: every draft. | |
| state | Yes | ||
| store | No | The connected store to use. Omit when only one is connected. | |
| answer | Yes | The answer code from Fudge’s consent card. |