Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Find Element In Frame

frame_find
Read-onlyIdempotent

Find an element inside a selected iframe or frame without altering global frame state. Specify the frame by index or selector and provide the target element selector.

Instructions

Find an element inside a selected iframe/frame without global frame state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_idNoOptional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.
timeoutNo
selectorYesSelector inside the target frame.
frame_indexNo
frame_selectorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +}
    • addedOutput schema / $defs
      Added value: +{
      +  "ElementPresentationData": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "ancestor_3d": {
      +        "title": "Ancestor 3D",
      +        "type": "boolean"
      +      },
      +      "coordinate_actionability": {
      +        "enum": [
      +          "ready",
      +          "hidden",
      +          "off_viewport",
      +          "covered",
      +          "pointer_disabled",
      +          "transformed_3d",
      +          "target_document_only"
      +        ],
      +        "title": "Coordinate Actionability",
      +        "type": "string"
      +      },
      +      "display": {
      +        "title": "Display",
      +        "type": "string"
      +      },
      +      "opacity": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Opacity"
      +      },
      +      "perspective": {
      +        "title": "Perspective",
      +        "type": "string"
      +      },
      +      "pointer_events": {
      +        "title": "Pointer Events",
      +        "type": "string"
      +      },
      +      "three_dimensional": {
      +        "title": "Three Dimensional",
      +        "type": "boolean"
      +      },
      +      "transform": {
      +        "title": "Transform",
      +        "type": "string"
      +      },
      +      "transform_style": {
      +        "title": "Transform Style",
      +        "type": "string"
      +      },
      +      "transformed": {
      +        "title": "Transformed",
      +        "type": "boolean"
      +      },
      +      "visibility": {
      +        "title": "Visibility",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "display",
      +      "visibility",
      +      "opacity",
      +      "pointer_events",
      +      "transform",
      +      "transform_style",
      +      "perspective",
      +      "transformed",
      +      "ancestor_3d",
      +      "three_dimensional",
      +      "coordinate_actionability"
      +    ],
      +    "title": "ElementPresentationData",
      +    "type": "object"
      +  },
      +  "ElementRectData": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "click_point": {
      +        "$ref": "#/$defs/PointData"
      +      },
      +      "coordinate_space": {
      +        "const": "target_document",
      +        "title": "Coordinate Space",
      +        "type": "string"
      +      },
      +      "location": {
      +        "$ref": "#/$defs/PointData"
      +      },
      +      "midpoint": {
      +        "$ref": "#/$defs/PointData"
      +      },
      +      "size": {
      +        "$ref": "#/$defs/SizeData"
      +      },
      +      "viewport_click_point": {
      +        "$ref": "#/$defs/PointData"
      +      },
      +      "viewport_coordinate_space": {
      +        "enum": [
      +          "top_level_viewport",
      +          "target_document_viewport"
      +        ],
      +        "title": "Viewport Coordinate Space",
      +        "type": "string"
      +      },
      +      "viewport_location": {
      +        "$ref": "#/$defs/PointData"
      +      },
      +      "viewport_midpoint": {
      +        "$ref": "#/$defs/PointData"
      +      }
      +    },
      +    "required": [
      +      "location",
      +      "size",
      +      "midpoint",
      +      "click_point",
      +      "viewport_location",
      +      "viewport_midpoint",
      +      "viewport_click_point",
      +      "coordinate_space",
      +      "viewport_coordinate_space"
      +    ],
      +    "title": "ElementRectData",
      +    "type": "object"
      +  },
      +  "ElementViewportEvidenceData": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alive": {
      +        "title": "Alive",
      +        "type": "boolean"
      +      },
      +      "checked": {
      +        "title": "Checked",
      +        "type": "boolean"
      +      },
      +      "clickable": {
      +        "title": "Clickable",
      +        "type": "boolean"
      +      },
      +      "covered": {
      +        "title": "Covered",
      +        "type": "boolean"
      +      },
      +      "covering_backend_node_id": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Covering Backend Node Id"
      +      },
      +      "displayed": {
      +        "title": "Displayed",
      +        "type": "boolean"
      +      },
      +      "enabled": {
      +        "title": "Enabled",
      +        "type": "boolean"
      +      },
      +      "in_viewport": {
      +        "title": "In Viewport",
      +        "type": "boolean"
      +      },
      +      "presentation": {
      +        "$ref": "#/$defs/ElementPresentationData"
      +      },
      +      "rect": {
      +        "$ref": "#/$defs/ElementRectData"
      +      },
      +      "selected": {
      +        "title": "Selected",
      +        "type": "boolean"
      +      },
      +      "whole_in_viewport": {
      +        "title": "Whole In Viewport",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "displayed",
      +      "enabled",
      +      "alive",
      +      "clickable",
      +      "checked",
      +      "selected",
      +      "in_viewport",
      +      "whole_in_viewport",
      +      "covered",
      +      "covering_backend_node_id",
      +      "rect",
      +      "presentation"
      +    ],
      +    "title": "ElementViewportEvidenceData",
      +    "type": "object"
      +  },
      +  "FrameSummaryData": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "boundary": {
      +        "enum": [
      +          "same_origin",
      +          "cross_origin",
      +          "unknown"
      +        ],
      +        "title": "Boundary",
      +        "type": "string"
      +      },
      +      "document_access": {
      +        "enum": [
      +          "readable",
      +          "outer_only",
      +          "unknown"
      +        ],
      +        "title": "Document Access",
      +        "type": "string"
      +      },
      +      "id": {
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "index": {
      +        "title": "Index",
      +        "type": "integer"
      +      },
      +      "name": {
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "outer": {
      +        "$ref": "#/$defs/ElementViewportEvidenceData"
      +      },
      +      "selector": {
      +        "title": "Selector",
      +        "type": "string"
      +      },
      +      "title": {
      +        "title": "Title",
      +        "type": "string"
      +      },
      +      "url": {
      +        "title": "Url",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "index",
      +      "selector",
      +      "id",
      +      "name",
      +      "title",
      +      "url",
      +      "boundary",
      +      "document_access",
      +      "outer"
      +    ],
      +    "title": "FrameSummaryData",
      +    "type": "object"
      +  },
      +  "PointData": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "x": {
      +        "title": "X",
      +        "type": "number"
      +      },
      +      "y": {
      +        "title": "Y",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "x",
      +      "y"
      +    ],
      +    "title": "PointData",
      +    "type": "object"
      +  },
      +  "SizeData": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "height": {
      +        "title": "Height",
      +        "type": "number"
      +      },
      +      "width": {
      +        "title": "Width",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "width",
      +      "height"
      +    ],
      +    "title": "SizeData",
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "element": {
      -            "additionalProperties": true,
      -            "title": "Element",
      -            "type": "object"
      -          },
      -          "frame": {
      -            "additionalProperties": true,
      -            "title": "Frame",
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "frame",
      -          "element"
      -        ],
      -        "title": "FrameFindData",
      -        "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": {
      +          "element": {
      +            "additionalProperties": true,
      +            "title": "Element",
      +            "type": "object"
      +          },
      +          "frame": {
      +            "$ref": "#/$defs/FrameSummaryData"
      +          },
      +          "tab_id": {
      +            "description": "MCP tab id captured for this operation.",
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "frame",
      +          "element",
      +          "tab_id"
      +        ],
      +        "title": "FrameFindData",
      +        "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. Changed1 schema field changedv0.8.0
    • changedInput schema / properties / timeout / type
      Previous value: -"integer"New value: +"number"
  3. Addedv0.7.2

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, covering the safety profile. The description adds the useful behavioral note that it operates 'without global frame state,' but provides no further detail on timeout behavior, error handling, or side effects beyond that single phrase.

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?

The description is a single front-loaded sentence with no wasted words, which is structurally efficient. However, for a tool with five parameters and low schema coverage, it is under-specified rather than appropriately sized, so it earns only a middling score for conciseness.

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?

While the output schema and annotations cover return values and safety, the description is incomplete for a five-parameter frame tool with 40% schema coverage. It does not explain frame selection, timeout behavior, or what happens when no frame/element is found, leaving significant gaps for correct invocation.

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 coverage is only 40%, with timeout, frame_index, and frame_selector lacking descriptions. The description vaguely references a 'selected iframe/frame' but does not explain how to select the frame via frame_index versus frame_selector, nor does it clarify the selector or timeout semantics, leaving the low coverage uncompensated.

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?

The description states a specific verb ('Find') and resource ('an element inside a selected iframe/frame'), making the tool's purpose immediately clear. It implies differentiation from element_find by scoping to a frame, but does not explicitly name or compare siblings, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is implied: the tool is for finding elements within a frame rather than the main document, and 'without global frame state' hints at a specific non-mutating context. However, there is no explicit guidance on when to choose this over element_find, frame_snapshot, or shadow_find, and no prerequisites are stated.

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