Make Widget Snippet
make_widget_snippetReturn a minimal browser SDK snippet for mounting captcha.cc and submitting the proof token to an application endpoint.
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": {
"site_key": "<site_key>"
},
"name": "make_widget_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | No | Form id to attach submit handling to. | contact-form |
| site_key | Yes | Public captcha.cc site key, for example pk_live_xxx. | |
| element_id | No | DOM element id where the widget should mount. | captcha |
| submit_path | No | Application endpoint that receives the proof token. | /submit-form |