Save Divi Library Item


Saves a post's current content as a new Divi Library item, by calling Divi's own layout-save function — the same one Divi 5's own Library UI uses — rather than writing the Library post directly.

Property Value
Ability slug mosmcp/divi5-library-create
Wire tool name mosmcp__divi5-library-create
Category Divi 5 (mosmcp-divi5)
Plan Pro

 

Required access

Requirement Value
Capability edit_post (checked against the specific post)
Minimum default role Contributor
Annotations readOnly: false · destructive: false · idempotent: false · openWorld: false

 

Input schema

Field Type Required Default Description
post_id integer (min 1) Yes — The ID of the post or page whose current content should be saved as a new Library item.
layout_name string (min length 1) Yes — Name for the new Library item.
layout_type string (one of layout, section, row, module) layout What scope of content this item represents.
make_global boolean false Save as a global item, synced across every page that uses it, instead of a plain reusable template.

 

Output schema

Field Type Required Description
post_id integer Yes The new Library item's post ID.
layout_name string Yes
source_post_id integer Yes
is_global boolean
edit_url string

 


<< Previous Next >>
Read Divi 5 Page (Experimental)

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.