Update pixel
update_pixelChange the label or the test event code of a connected ad platform pixel. Returns the pixel's label and test event code after the change. A test event code sends events to the ad platform's test events view, for debugging. An empty test event code turns test mode off. Test mode also turns off by itself at test_mode_ends_at. Fields left out stay unchanged. The pixel id and access token can only be changed in the dashboard. Use it when the user wants to rename a pixel or check events in the ad platform's test view.
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_id": "<site_id>",
"pixel_id": "<pixel_id>"
},
"name": "update_pixel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Display name for the pixel. | |
| site_id | Yes | Site to act on, as returned by list_sites. | |
| pixel_id | Yes | Pixel id as returned by get_site_status (`pixels[].pixel_id`). | |
| test_event_code | No | Test event code from the ad platform's events manager, such as TEST12345. Empty string clears it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Pixel label after the change. | |
| pixel_id | Yes | Pixel id. | |
| test_event_code | Yes | Test event code after the change. null: test mode is off. | |
| test_mode_ends_at | Yes | When test mode turns off by itself and the test event code is cleared. A new code sent while test mode is on keeps this time. null: test mode is off. |