← All tools

Data / VERSION 1

Select JSON fields

Extract values using explicit JSON Pointer paths and report missing fields separately.

Available via local MCP
RuntimeLocal DockerNetworkNoneRequest / result256 KiB eachProvider costNo API fees; local compute

Give it a task.

Use this MCP call after connecting Piwi. The output below is the result asserted by this tool's tests.

MCP tool call
{
  "name": "piwi_run_json_select",
  "arguments": {
    "input": {
      "document": {
        "customer": {
          "name": "Ada"
        },
        "secret": "excluded"
      },
      "pointers": [
        "/customer/name",
        "/missing"
      ]
    }
  }
}
Expected output
{
  "values": {
    "/customer/name": "Ada"
  },
  "missing": [
    "/missing"
  ]
}

Inputs

  • document: JSON value
  • pointers: up to 100 JSON Pointer strings

Outputs

  • values: map of found pointers to values
  • missing: absent pointers