Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Accessibility Snapshot

page_accessibility_snapshot
Read-onlyIdempotent

Capture a bounded Chromium accessibility tree for a page or a scoped selector, frame, or shadow target, so you can inspect roles, names, and structure without vision models.

Instructions

Return a bounded Chromium accessibility tree for the page or a scoped selector/frame/shadow target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoOptional selector/accessibility element whose AX subtree is returned.
tab_idNoOptional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.
max_nodesNo
include_valuesNoReturn accessibility field values. Defaults to false to avoid leaking secrets.
include_ignoredNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.8
    • addedInput schema / properties / tab_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 128,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.",
      +  "title": "Tab Id"
      +}
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "count": {
      -            "title": "Count",
      -            "type": "integer"
      -          },
      -          "max_nodes": {
      -            "title": "Max Nodes",
      -            "type": "integer"
      -          },
      -          "meta": {
      -            "additionalProperties": true,
      -            "title": "Meta",
      -            "type": "object"
      -          },
      -          "nodes": {
      -            "items": {
      -              "$ref": "#/$defs/AccessibilityNodeData"
      -            },
      -            "title": "Nodes",
      -            "type": "array"
      -          },
      -          "returned": {
      -            "title": "Returned",
      -            "type": "integer"
      -          },
      -          "scope": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": true,
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "title": "Scope"
      -          },
      -          "truncated": {
      -            "title": "Truncated",
      -            "type": "boolean"
      -          },
      -          "values_included": {
      -            "title": "Values Included",
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "nodes",
      -          "count",
      -          "returned",
      -          "max_nodes",
      -          "truncated",
      -          "values_included",
      -          "scope",
      -          "meta"
      -        ],
      -        "title": "PageAccessibilitySnapshotData",
      -        "type": "object"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "message",
      -      "data"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "details": {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "message",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "count": {
      +            "title": "Count",
      +            "type": "integer"
      +          },
      +          "max_nodes": {
      +            "title": "Max Nodes",
      +            "type": "integer"
      +          },
      +          "meta": {
      +            "additionalProperties": true,
      +            "title": "Meta",
      +            "type": "object"
      +          },
      +          "nodes": {
      +            "items": {
      +              "$ref": "#/$defs/AccessibilityNodeData"
      +            },
      +            "title": "Nodes",
      +            "type": "array"
      +          },
      +          "returned": {
      +            "title": "Returned",
      +            "type": "integer"
      +          },
      +          "scope": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": true,
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "title": "Scope"
      +          },
      +          "tab_id": {
      +            "description": "MCP tab id captured for this operation.",
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "truncated": {
      +            "title": "Truncated",
      +            "type": "boolean"
      +          },
      +          "values_included": {
      +            "title": "Values Included",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "nodes",
      +          "count",
      +          "returned",
      +          "max_nodes",
      +          "truncated",
      +          "values_included",
      +          "scope",
      +          "meta",
      +          "tab_id"
      +        ],
      +        "title": "PageAccessibilitySnapshotData",
      +        "type": "object"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "message",
      +      "data"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "message",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv0.8.0

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered structurally. The description adds 'bounded' (implying node truncation) and specifies the tree is Chromium-specific, but discloses nothing about truncation behavior, tab capture timing, or value-leakage handling that the annotations don't already imply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence with the verb and resource front-loaded and no filler. It is efficient, though the brevity is also what leaves usage guidance thin.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is not required, and annotations carry the safety burden. For a 5-parameter tool with nested scope objects, however, the description omits tab targeting and the node-count bounding that the agent needs to reason about output size.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 60%, so the baseline is a middling score. The description touches on scope and bounding, which map to the scope and max_nodes parameters, but says nothing about tab_id, include_values (the secret-leakage toggle), or include_ignored, leaving those to the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Return a bounded Chromium accessibility tree,' and enumerates the scoping options (page, selector, frame, shadow). It does not distinguish itself from near-siblings like page_snapshot or frame_snapshot, so an agent must infer the difference from the resource noun alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage through 'for the page or a scoped selector/frame/shadow target,' but never states when to prefer this over page_snapshot, page_observe, or element_get_* tools. No exclusions or prerequisites are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.