Get the install snippet
install_snippetReturns the script tag and npm setup for a website, its allowed origins and where the snippet goes. It does not change any code.
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": {
"projectId": "<projectId>"
},
"name": "install_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npm | Yes | ||
| name | Yes | ||
| appUrl | Yes | ||
| script | Yes | ||
| status | Yes | ||
| origins | Yes | ||
| placement | Yes | ||
| projectId | Yes | ||
| projectKey | Yes | ||
| firstEventAt | Yes | ||
| consentPolicy | Yes | ||
| collectionMode | Yes | ||
| respectDoNotTrack | Yes |