Skip to content

dorshitrit/json-inspector

v0.3.1

Validate a JSON file and return a bounded structural summary.

What this package declares

The file a client reads when it loads this plugin, exactly as this revision carries it.

plugin.json
{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "json-inspector",
  "version": "0.3.1",
  "description": "Validate a JSON file and return a bounded structural summary.",
  "extensions": {
    "ai.abot.runtime": {
      "version": 1,
      "entrypoint": "./src/index.cjs",
      "catalogGroups": ["read"],
      "settings": {
        "defaults": {
          "defaultDepth": 3
        }
      },
      "capabilities": {
        "inspect_json": {
          "description": "Validate one JSON file and return a bounded structural summary. Relative paths resolve inside the configured agent work directory; `workspace/...` targets configured workspace sources.",
          "routingCapability": "semantic_lookup",
          "eventPresentation": {
            "metadata": {
              "displayTarget": { "param": "path", "kind": "string" },
              "maxDepth": { "param": "maxDepth", "kind": "number" }
            },
            "resultMetadata": {
              "outputPreview": { "path": "output", "kind": "preview" },
              "maxDepth": { "path": "data.maxDepth", "kind": "number" },
              "syntaxValid": { "path": "data.syntaxValid", "kind": "boolean" },
              "outputTruncated": { "path": "data.truncation.output.truncated", "kind": "boolean" }
            }
          },
          "runtimePathBindings": [
            { "operationId": "inspect_json", "param": "path", "base": "worker_working_directory" }
          ],
          "skills": ["json_inspector_skill"],
          "operations": {
            "inspect_json": {
              "summary": "Validate and summarize JSON beneath the configured agent work directory, or beneath configured workspace sources when `workspace/...` is explicit.",
              "input": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "path": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1024
                  },
                  "maxDepth": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 6
                  }
                },
                "required": ["path"]
              },
              "effect": "read_only",
              "approval": "request_policy"
            }
          }
        }
      }
    }
  }
}

Client extensions

Data this package carries for particular clients. The directory lists the clients named and never reads what is addressed to them.

  • ai.abot.runtime