Get Campaigns
decision_api_get_campaignsRetrieve all campaigns and feature flags for a visitor using their context, returning campaign variations and modifications for targeting decisions.
Instructions
Get all campaigns (feature flags) for a visitor with their context. Returns campaign variations and modifications.
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": {
"visitor_id": "<visitor_id>",
"context": "<context>",
"trigger_hit": "<trigger_hit>"
},
"name": "decision_api_get_campaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | The visitor context (key-value pairs for targeting) | |
| visitor_id | Yes | The unique identifier for the visitor | |
| trigger_hit | Yes | Whether to send a hit to analytics (default: false) |