Send a draft to WordPress
send_draft_to_wordpressSend one page draft to the user's WordPress site as a WordPress DRAFT, never published. Called without approval it returns a preview and an approval code; call again with that approval only after the user agrees. Needs the Goppa WordPress plugin 0.16.0 or newer with Comparison pages on, and write access.
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": {
"draft_id": "<draft_id>"
},
"name": "send_draft_to_wordpress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | One of your sites in Goppa, by domain (example.com). Required when the account has more than one site: without it, the answer lists the sites to choose from. With a single site it can be left out. | |
| approval | No | Leave out the first time: you get a preview and an approval code. Send that code only after the user agrees. | |
| draft_id | Yes | The draft id from get_page_drafts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| as_of | No | ||
| draft | No | ||
| error | No | ||
| needs | No | ||
| ready | No | ||
| saved | No | ||
| state | No | ||
| market | No | ||
| period | No | ||
| reason | No | ||
| sample | No | ||
| missing | No | ||
| partial | No | ||
| preview | No | ||
| started | No | ||
| summary | No | ||
| approval | No | ||
| language | No | ||
| available | No | ||
| arrives_as | No | ||
| data_status | No | ||
| next_action | No | ||
| evidence_ids | No | ||
| plugin_ready | No | ||
| open_in_goppa | No | ||
| site_required | No | ||
| workspace_url | No | ||
| plugin_version | No | ||
| approval_changed | No | ||
| sites_in_account | No | ||
| untrusted_fields | No | ||
| comparison_pages_option_on | No |