snippet_activate tool reference for WPCode / Code Snippets / Woody
Writeactivates a snippet by ID.
Description
activates a snippet by ID.
What it is for
- Turning on an automation or custom code adjustment.
Example use case
enabling reviewed code.
Sample prompt
Activate snippet ID 19 now that the code review has been completed.
Sample response
{
"tool": "snippet_activate",
"status": "ok",
"updated": true
}
What does snippet_activate do?
activates a snippet by ID.
Does snippet_activate 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_activate 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.
