Generate Browser JavaScript Snippets
growsurf_client_snippetsGenerate Markdown browser JavaScript and CSS examples for referral tracking, embeddable elements, and the GrowSurf Window, with placement guidance. Does not install code or change a program. Use growsurf_embeddable_element_snippet for one HTML element, growsurf_grsf_config_snippet for window.grsfConfig, or growsurf_api_library_snippets for backend REST code.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "growsurf_client_snippets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| programType | No | both | |
| singlePageApp | No | ||
| referralTrigger | No | signup_plus_qualifying_action | |
| includeUnreadBadge | No | ||
| includeGrowSurfWindow | No | ||
| participantAuthEnabled | No | ||
| includeEmbeddableElements | No | ||
| includeEventSubscriptions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | No | The generated guidance as a markdown document. |