Insert Kadence Image


Inserts a Kadence Image block from a media-library attachment ID (not a raw URL, so the correct source, alt text, and responsive sizes are used).

Property Value
Ability slug mosmcp/kadence-insert-image
Wire tool name mosmcp__kadence-insert-image
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.
attachment_id integer (min 1) Yes — Media library attachment ID of the image to insert.
alt string — Optional alt text override; defaults to the attachment's alt text.

 

Output schema

Field Type Required
id integer Yes
unique_id string Yes
block string Yes
modified string
verified boolean

 

Example

Sample prompt
Put image 88 from my media library into the second column on page 42.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 344,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__kadence-insert-image",
    "arguments": {
      "input": {
        "id": 42,
        "parent_id": "42_9c0d1e-2f",
        "attachment_id": 88,
        "alt": "Team at work"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 344,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 42,
      "unique_id": "42_4e5f6a-7b",
      "block": "kadence/image",
      "modified": "2026-09-29 10:41:20",
      "verified": true
    }
  }
}

 

Edge cases / errors

  • attachment_id that is not an image in the media library -> refused with kadence_validation_failed.
  • alt omitted or blank -> the attachment's own alt text is used.
  • Target container empty or not a container -> kadence_unsupported_container.

 


<< Previous Next >>
Insert Kadence Icon Insert Kadence Row

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.