snippet_update tool reference for WPCode / Code Snippets / Woody
Writeupdates an existing snippet. It only modifies the provided fields and does not execute code.
Description
updates an existing snippet. It only modifies the provided fields and does not execute code.
What it is for
- Correcting existing snippets.
Example use case
adjusting custom code safely.
Sample prompt
Update snippet ID 19 to change the admin notice text and leave it inactive for review.
Sample response
{
"tool": "snippet_update",
"status": "ok",
"updated": true
}
What does snippet_update do?
updates an existing snippet. It only modifies the provided fields and does not execute code.
Does snippet_update modify site data?
Yes. It can create, update, activate, deactivate, or delete data depending on arguments.
Which capability is commonly required?
It usually runs with controls compatible with manage_options and the active MCP profile.
How should snippet_update be used safely?
Require confirmation, test in staging first, and verify rollback coverage.
Which plugin is required?
WPCode / Code Snippets / Woody must be installed and active in the target WordPress environment.
