Tools Catalog / Plugin integrations / WPCode / Code Snippets / Woody / snippet_get

snippet_get tool reference for WPCode / Code Snippets / Woody

Sensitive read
Group WPCode / Code Snippets / WoodyCapability manage_options

gets a complete snippet by ID, including the code.

Description

gets a complete snippet by ID, including the code.

What it is for

  • Reviewing code before modifying it.

Example use case

reviewing a risky snippet.

Sample prompt

Get snippet ID 19 so I can inspect the full code before changing anything.

Sample response

{
  "tool": "snippet_get",
  "status": "ok",
  "items": []
}

What does snippet_get do?

gets a complete snippet by ID, including the code.

Does snippet_get modify site data?

It does not write data, but it can expose sensitive plugin or submission details.

Which capability is commonly required?

It usually runs with controls compatible with manage_options and the active MCP profile.

How should snippet_get be used safely?

Restrict by profile and avoid exposing full payloads in shared logs.

Which plugin is required?

WPCode / Code Snippets / Woody must be installed and active in the target WordPress environment.