Register Meta cabinet
register_meta_cabinetRegister (or refresh) a Facebook ad account's campaign catalog WITHOUT a Graph token — id, name, status, objective, daily / lifetime budget — what the Torvex browser extension reads from a logged-in Ads Manager session before posting costs. Lands under a tokenless Meta profile keyed by the FB user id (created on first call), so the campaign editor's Facebook picker can link these FB campaigns to tracker campaigns and import_meta_costs then matches them. The campaign list is the cabinet's complete list: campaigns missing from it are dropped from the mirror unless partial is set. Adsets of the same cabinet go through report_meta_adsets, ads through report_meta_ads.
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": {
"fb_user": "<fb_user>",
"ad_account": "<ad_account>",
"campaigns": "<campaigns>"
},
"name": "register_meta_cabinet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | The FB user's pages (/me/accounts) — the launch wizard's page picker for this profile | |
| pixels | No | The cabinet's pixels (/act_X/adspixels) — complete list, the wizard's pixel picker | |
| fb_user | Yes | ||
| partial | No | true on every chunk but the last when one cabinet is split over several requests (no pruning) | |
| agency_id | No | Meta agency (list_meta_agencies) whose commission the profile's cabinets pay — set on the profile before the costs of the same run, so the first sync books spend with the markup; omit / null to keep what Meta → Accounts set | |
| campaigns | Yes | ||
| ad_account | Yes |