More Targeted Content Editing With Block MCP ![rw-book-cover](https://share.snipd.com/share-image/resize?url=https%3A%2F%2Fimg.transistorcdn.com%2Ft5ClDS2raVsJTebN6arnU6bAv7uprL9vdbhfrLgCjoY%2Frs%3Afill%3A0%3A0%3A1%2Fw%3A1400%2Fh%3A1400%2Fq%3A60%2Fmb%3A500000%2FaHR0cHM6Ly9pbWct%2FdXBsb2FkLXByb2R1%2FY3Rpb24udHJhbnNp%2Fc3Rvci5mbS8zZDhl%2FYzIxN2QwOWRmYjQ1%2FOTM2ZjMwZWRiYzli%2FM2ExMC5wbmc.jpg&width=512&height=512) 🔗 **Source:** [More Targeted Content Editing With Block MCP](https://share.snipd.com/episode/b6010176-e1c6-4c3d-a122-3a30a99241aa) ## Highlights - **Block MCP Edits Specific Blocks With Stable IDs** - The Block MCP targets and edits specific Gutenberg blocks using stable reference IDs rather than rescanning the entire page. - Zack Katz demonstrated selecting an H2 in the Know Your Site section and updating it via an Update One Block tool that preserved identity across edits. Transcript: Zack Katz Eric, let's say I wanted to change this heading. A WordPress MCP knows your site. You can reference the text that you want to change, and the block MCP is optimized for this. AI can take forever to scan through and find some specific code or look for a selector. The block MCP is optimized for this kind of editing. Let's say, to be more punchy uh make it better gotta love good prompting for ai so uh what it's going to do is it's going to identify that we are talking about uh using the block mcp to edit The website because the mcp has uh registered that that's what like that it's available to edit the website it's loading the tools that it needs including the block MCP now uh it's using My memory system which is auto mem by Jack Arturo and WordPress if anybody is frustrated that your AI doesn't remember things about what you work on and why you work on them and how you Work uh check out the auto mem that's a great project okay I've heard of that one before and it seems like people are uh really loving that that functionality yeah it's really cool so I See we're counting all the tokens yep so it says I've got the page the headline you want to punch up is the h2 at the start of the Know Your Site section. Now you'll see in the response, it uses an identifier, a reference ID. One of the things that is frustrating when you're using other MCP products is that it has to rescan your page after every edit to know what is the proper code to update. We have stable reference IDs. That means that you don't have to rescan the page. It understands after it makes the edit that the things are the same as they used to be. Eric Karkovack So the next time you want to edit this, it won't have to rescan everything. Even if you just made an edit to what you're editing now, it should remember that and won't have to rescan everything. Zack Katz Let's show how that works so it uh it says which punch your headline should replace a wordpress mcp that knows your site uh let's say connect once it already knows your site so i've chosen The headline that i prefer hit enter and now what it should be doing is using this uh is using a specific selector and editing a specific block you can see that the tool it uses is update One block that is a specific tool that's finding the specific heading that uses a specific reference id and it makes the change now after every change it saves a revision which means That you can roll back to before the edit. ([Time 0:01:23](https://share.snipd.com/snip/e6a7df4f-253d-46e9-bfd1-ee19f21ab2c9)) - **Use Memory To Keep MCP Context Between Edits** - Use a memory system so the MCP remembers site context and avoids repeated rescans between edits. - Zack showed the MCP using Auto Mem to recall the page and keep consistent reference IDs across edits and revisions. Transcript: Zack Katz The block MCP is optimized for this kind of editing. Let's say, to be more punchy uh make it better gotta love good prompting for ai so uh what it's going to do is it's going to identify that we are talking about uh using the block mcp to edit The website because the mcp has uh registered that that's what like that it's available to edit the website it's loading the tools that it needs including the block MCP now uh it's using My memory system which is auto mem by Jack Arturo and WordPress if anybody is frustrated that your AI doesn't remember things about what you work on and why you work on them and how you Work uh check out the auto mem that's a great project okay I've heard of that one before and it seems like people are uh really loving that that functionality yeah it's really cool so I See we're counting all the tokens yep so it says I've got the page the headline you want to punch up is the h2 at the start of the Know Your Site section. Now you'll see in the response, it uses an identifier, a reference ID. One of the things that is frustrating when you're using other MCP products is that it has to rescan your page after every edit to know what is the proper code to update. We have stable reference IDs. That means that you don't have to rescan the page. It understands after it makes the edit that the things are the same as they used to be. Eric Karkovack So the next time you want to edit this, it won't have to rescan everything. Even if you just made an edit to what you're editing now, it should remember that and won't have to rescan everything. Zack Katz Let's show how that works so it uh it says which punch your headline should replace a wordpress mcp that knows your site uh let's say connect once it already knows your site so i've chosen The headline that i prefer hit enter and now what it should be doing is using this uh is using a specific selector and editing a specific block you can see that the tool it uses is update One block that is a specific tool that's finding the specific heading that uses a specific reference id and it makes the change now after every change it saves a revision which means That you can roll back to before the edit. ([Time 0:01:42](https://share.snipd.com/snip/e40c13cb-8e44-4ef5-9779-0ef130d724f7)) - **Verify Edits Through WordPress Rendering** - Verify edits by running them through WordPress rendering to ensure valid block structure, not just valid HTML. - Zack advised using the MCP's verified step which throws errors back to the AI if WordPress doesn't render the expected result. Transcript: Zack Katz It's really cool so I see we're counting all the tokens yep so it says I've got the page the headline you want to punch up is the h2 at the start of the Know Your Site section. Now you'll see in the response, it uses an identifier, a reference ID. One of the things that is frustrating when you're using other MCP products is that it has to rescan your page after every edit to know what is the proper code to update. We have stable reference IDs. That means that you don't have to rescan the page. It understands after it makes the edit that the things are the same as they used to be. Eric Karkovack So the next time you want to edit this, it won't have to rescan everything. Even if you just made an edit to what you're editing now, it should remember that and won't have to rescan everything. Zack Katz Let's show how that works so it uh it says which punch your headline should replace a wordpress mcp that knows your site uh let's say connect once it already knows your site so i've chosen The headline that i prefer hit enter and now what it should be doing is using this uh is using a specific selector and editing a specific block you can see that the tool it uses is update One block that is a specific tool that's finding the specific heading that uses a specific reference id and it makes the change now after every change it saves a revision which means That you can roll back to before the edit. So it now says verified. The heading is live and on the page. Now you'll note the verified step. One of the things we do is after each edit, we make sure that the edit was valid. And we're not just talking about valid HTML. We're talking about valid block structure because other MCPs can completely destroy your block structure so we run it through wordpress itself and make sure that wordpress renders The same way that we expect it to render and if it doesn't do that then we throw an error and tell the ai hey something didn't work and this is what didn't work so other mcps don't do this other Mcps will make an edit and you'll assume everything went perfectly and that is not the way we wanted our MCPs to work. So I'm going to go back to the browser and refresh the page. WordPress MCPs that knows your site should now say connect once. It already knows your site. And it does. Nice. So that is a very simple thing. ([Time 0:02:38](https://share.snipd.com/snip/df3082c7-0531-46c3-b4df-46f8465acc75)) - **Automatic Revisions Provide Safe Rollbacks** - Edits create revisions automatically so you can roll back if the AI change is undesirable. - During the demo Zack showed the update saved a revision and reported the heading as verified and live on the page. Transcript: Zack Katz Let's show how that works so it uh it says which punch your headline should replace a wordpress mcp that knows your site uh let's say connect once it already knows your site so i've chosen The headline that i prefer hit enter and now what it should be doing is using this uh is using a specific selector and editing a specific block you can see that the tool it uses is update One block that is a specific tool that's finding the specific heading that uses a specific reference id and it makes the change now after every change it saves a revision which means That you can roll back to before the edit. So it now says verified. The heading is live and on the page. Now you'll note the verified step. One of the things we do is after each edit, we make sure that the edit was valid. And we're not just talking about valid HTML. We're talking about valid block structure because other MCPs can completely destroy your block structure so we run it through wordpress itself and make sure that wordpress renders The same way that we expect it to render and if it doesn't do that then we throw an error and tell the ai hey something didn't work and this is what didn't work so other mcps don't do this other Mcps will make an edit and you'll assume everything went perfectly and that is not the way we wanted our MCPs to work. So I'm going to go back to the browser and refresh the page. WordPress MCPs that knows your site should now say connect once. It already knows your site. And it does. Nice. So that is a very simple thing. ([Time 0:03:26](https://share.snipd.com/snip/afafdeb8-7e7d-4eb7-bc0a-32019f5b3850)) - **Block MCP Handles Moves And Alt Text Edits** - The Block MCP supports targeted edits beyond text, including moving blocks and editing alt text out of the box. - Zack emphasized these operations work without worrying about MCP functionality, focusing on editing the site with AI. Transcript: Zack Katz So it now says verified. The heading is live and on the page. Now you'll note the verified step. One of the things we do is after each edit, we make sure that the edit was valid. And we're not just talking about valid HTML. We're talking about valid block structure because other MCPs can completely destroy your block structure so we run it through wordpress itself and make sure that wordpress renders The same way that we expect it to render and if it doesn't do that then we throw an error and tell the ai hey something didn't work and this is what didn't work so other mcps don't do this other Mcps will make an edit and you'll assume everything went perfectly and that is not the way we wanted our MCPs to work. So I'm going to go back to the browser and refresh the page. WordPress MCPs that knows your site should now say connect once. It already knows your site. And it does. Nice. So that is a very simple thing. But even that is very complicated for other mcps to get right you can move things around if you want to you uh you can edit alt text all of this stuff works out of the box and you don't have To worry about like the actual uh mcp functioning that is the we wanted to take that off the table we just wanted to be able to edit our site using the MC. ([Time 0:04:06](https://share.snipd.com/snip/9c109a13-f3c9-4d3e-a0aa-ceedd7350af4))