get_snippet
Generate a ready-to-use JavaScript or HTML snippet for integrating RollDate Core date pickers or Events calendars in a chosen scenario.
Instructions
Get a ready-to-use JS and/or HTML snippet for a RollDate Core or Events scenario.
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": {
"scenario": "<scenario>"
},
"name": "get_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Snippet format. Default: both | |
| product | No | RollDate product. Default: core (date picker). Use events for event calendars. | |
| scenario | Yes | Scenario id from list_scenarios | |
| assetPath | No | Relative path to installed assets. Defaults per product. |