Publish a lead magnet
publish_lead_magnetMake a draft or paused lead magnet PUBLIC on the user's Library and return its URL and the email form embed code. Only call this when the user has asked to publish. It first checks readiness and refuses with the reasons if something blocks it (no Library address, plan limit). If the ebook was edited after the PDF was made, the PDF is rendered again first unless refreshPdf is false.
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": {
"magnetId": "<magnetId>"
},
"name": "publish_lead_magnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| magnetId | Yes | From list_lead_magnets or create_lead_magnet. | |
| refreshPdf | No | When the ebook was edited after the PDF was made, publishing stops and asks first. Then send true to make the PDF again from the ebook as it is now, or false to publish the existing PDF as it is. Ask the user which. |