Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Find Shadow Elements

shadow_find_all
Read-onlyIdempotent

Locate repeated elements within an exposed shadow root using host and inner selectors, with optional result limits and HTML capture for browser automation workflows.

Instructions

Find repeated elements inside a shadow root exposed by the supported DrissionPage runtime.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
tab_idNoOptional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.
selectorYesSelector inside the shadow root.
include_htmlNo
host_selectorYesSelector for the shadow host element.

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"
      -          },
      -          "elements": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "title": "Elements",
      -            "type": "array"
      -          },
      -          "host": {
      -            "additionalProperties": true,
      -            "title": "Host",
      -            "type": "object"
      -          },
      -          "limit": {
      -            "title": "Limit",
      -            "type": "integer"
      -          },
      -          "meta": {
      -            "additionalProperties": true,
      -            "title": "Meta",
      -            "type": "object"
      -          },
      -          "returned": {
      -            "title": "Returned",
      -            "type": "integer"
      -          },
      -          "target": {
      -            "additionalProperties": true,
      -            "title": "Target",
      -            "type": "object"
      -          },
      -          "truncated": {
      -            "title": "Truncated",
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "host",
      -          "target",
      -          "count",
      -          "returned",
      -          "limit",
      -          "truncated",
      -          "elements",
      -          "meta"
      -        ],
      -        "title": "ShadowFindAllData",
      -        "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"
      +          },
      +          "elements": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "title": "Elements",
      +            "type": "array"
      +          },
      +          "host": {
      +            "additionalProperties": true,
      +            "title": "Host",
      +            "type": "object"
      +          },
      +          "limit": {
      +            "title": "Limit",
      +            "type": "integer"
      +          },
      +          "meta": {
      +            "additionalProperties": true,
      +            "title": "Meta",
      +            "type": "object"
      +          },
      +          "returned": {
      +            "title": "Returned",
      +            "type": "integer"
      +          },
      +          "tab_id": {
      +            "description": "MCP tab id captured for this operation.",
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "target": {
      +            "additionalProperties": true,
      +            "title": "Target",
      +            "type": "object"
      +          },
      +          "truncated": {
      +            "title": "Truncated",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "host",
      +          "target",
      +          "count",
      +          "returned",
      +          "limit",
      +          "truncated",
      +          "elements",
      +          "meta",
      +          "tab_id"
      +        ],
      +        "title": "ShadowFindAllData",
      +        "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
  3. Removedv0.7.2
  4. Addedv0.7.2

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is fully covered. The description adds only the vague phrase 'supported DrissionPage runtime' and says nothing about pagination, the limit cap, or how repeated matches are ordered, so it contributes almost no behavior beyond the name.

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

Conciseness3/5

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

One front-loaded sentence with no filler, so it is structurally clean. But its brevity comes from under-specification rather than efficiency, leaving required decision information out.

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

Completeness2/5

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

For a five-parameter tool with two required selectors, an output schema present, and two undocumented parameters, the description omits usage context, error behavior and parameter meaning. The existence of an output schema excuses return-value explanation, but not the remaining gaps.

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

Parameters2/5

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

Schema description coverage is 60%: tab_id, selector and host_selector are documented in the schema, but limit and include_html are not. The description adds no parameter meaning at all, so it fails to compensate for the two undocumented parameters (e.g., the 1-100 limit range or what include_html returns).

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 ('Find') plus resource ('repeated elements inside a shadow root'), which is more precise than the singular shadow_find. However it never names a sibling (element_find_all, shadow_find) to make the boundary explicit, so disambiguation is left to inference from the word 'shadow'.

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?

There is no when-to-use guidance, no exclusions, and no mention of alternatives such as element_find_all for non-shadow DOM or shadow_find for a single element. The agent must infer the routing entirely from the tool name.

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