ghl_ad_fb_lead_form_get
Retrieve a Facebook lead form by ID, including its published Meta definition, or set isDraft=true to fetch an unpublished local draft instead.
Instructions
Get lead form by ID
Retrieve a lead form by id. Pass isDraft=true to read an unpublished local draft instead, in which case leadFormId accepts either the bare id or the draft_-prefixed form the listing endpoint reports. The two branches return different shapes, and neither matches the shape the listing endpoint returns for the same form: the published branch carries the full Meta definition (context card, thank-you page, legal content) but no status, createdTime, or pageId, while the draft branch returns the stored document verbatim under _id.
Endpoint: GET /ad-publishing/facebook/lead-form/{leadFormId} (Version header: v3; source: v3/ad-publishing-v3.json)
OAuth scopes: adPublishing.readonly
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": {
"leadFormId": "<leadFormId>",
"locationId": "<locationId>"
},
"name": "ghl_ad_fb_lead_form_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isDraft | No | Fetch the unpublished draft of this lead form instead of the published form | |
| leadFormId | Yes | Lead form identifier | |
| locationId | Yes | Location identifier |