Insert Kadence Button
Inserts a Kadence Buttons block containing a single button with the given label and link.
| Property | Value |
|---|---|
| Ability slug | mosmcp/kadence-insert-button |
| Wire tool name | mosmcp__kadence-insert-button |
| Category | Kadence (mosmcp-kadence) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Requires | Kadence Blocks (theme abilities also need the Kadence theme) |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The ID of the page or post to insert into. |
| parent_id | string | — | Optional uniqueID of a Kadence Row or Column to insert inside. Omit to append at the page root. | |
| after_id | string | — | Optional uniqueID of a sibling block to insert immediately after (ignored if parent_id is given). | |
| expected_modified | string | — | Optional optimistic lock: the page's "modified" value as read. If the page changed since, the insert is refused with stale_revision. | |
| text | string (min length 1) | Yes | — | The button label. |
| link | string | — | The button URL. |
Output schema
| Field | Type | Required |
|---|---|---|
| id | integer | Yes |
| unique_id | string | Yes |
| block | string | Yes |
| modified | string | |
| verified | boolean |
Example
Sample prompt
Add a 'Book a call' button linking to https://example.com/contact under the heading on page 42.
Example request (json)
{
"jsonrpc": "2.0",
"id": 340,
"method": "tools/call",
"params": {
"name": "mosmcp__kadence-insert-button",
"arguments": {
"input": {
"id": 42,
"after_id": "42_0a1b2c-3d",
"text": "Book a call",
"link": "https://example.com/contact"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 340,
"result": {
"isError": false,
"structuredContent": {
"id": 42,
"unique_id": "42_8c9d0e-1f",
"block": "kadence/advancedbtn",
"modified": "2026-09-29 10:43:33",
"verified": true
}
}
}
Edge cases / errors
- Creates a Buttons wrapper containing one single button; the returned unique_id is the wrapper's.
- Empty text -> rejected by schema; link is sanitised with esc_url_raw (unsafe URLs become empty).
- after_id not found -> kadence_unsupported_block; stale lock -> kadence_stale_revision.
| << Previous | Next >> |
|---|---|
| Get Kadence Page Layout | Insert Kadence Column |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.