Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Frame Snapshot

frame_snapshot
Read-onlyIdempotent

Extract a bounded page outline from a selected iframe or frame. Captures text and optional HTML up to defined element and character limits.

Instructions

Return a bounded page outline from a selected iframe/frame.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_idNoOptional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.
timeoutNo
frame_indexNoZero-based frame index.
include_htmlNo
max_elementsNo
frame_selectorNoOptional iframe/frame selector. When empty, frame_index is used.
max_text_charsNo

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": {
      -          "buttons": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "title": "Buttons",
      -            "type": "array"
      -          },
      -          "counts": {
      -            "additionalProperties": {
      -              "type": "integer"
      -            },
      -            "title": "Counts",
      -            "type": "object"
      -          },
      -          "forms": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "title": "Forms",
      -            "type": "array"
      -          },
      -          "frame": {
      -            "additionalProperties": true,
      -            "title": "Frame",
      -            "type": "object"
      -          },
      -          "headings": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "title": "Headings",
      -            "type": "array"
      -          },
      -          "inputs": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "title": "Inputs",
      -            "type": "array"
      -          },
      -          "limits": {
      -            "additionalProperties": true,
      -            "title": "Limits",
      -            "type": "object"
      -          },
      -          "links": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "title": "Links",
      -            "type": "array"
      -          },
      -          "meta": {
      -            "additionalProperties": true,
      -            "title": "Meta",
      -            "type": "object"
      -          },
      -          "text_excerpt": {
      -            "title": "Text Excerpt",
      -            "type": "string"
      -          },
      -          "title": {
      -            "title": "Title",
      -            "type": "string"
      -          },
      -          "truncated": {
      -            "additionalProperties": true,
      -            "title": "Truncated",
      -            "type": "object"
      -          },
      -          "url": {
      -            "title": "Url",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "frame",
      -          "url",
      -          "title",
      -          "text_excerpt",
      -          "headings",
      -          "links",
      -          "buttons",
      -          "inputs",
      -          "forms",
      -          "counts",
      -          "truncated",
      -          "limits",
      -          "meta"
      -        ],
      -        "title": "FrameSnapshotData",
      -        "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": {
      +          "buttons": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "title": "Buttons",
      +            "type": "array"
      +          },
      +          "counts": {
      +            "additionalProperties": {
      +              "type": "integer"
      +            },
      +            "title": "Counts",
      +            "type": "object"
      +          },
      +          "forms": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "title": "Forms",
      +            "type": "array"
      +          },
      +          "frame": {
      +            "$ref": "#/$defs/FrameSummaryData"
      +          },
      +          "headings": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "title": "Headings",
      +            "type": "array"
      +          },
      +          "inputs": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "title": "Inputs",
      +            "type": "array"
      +          },
      +          "limits": {
      +            "additionalProperties": true,
      +            "title": "Limits",
      +            "type": "object"
      +          },
      +          "links": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "title": "Links",
      +            "type": "array"
      +          },
      +          "meta": {
      +            "additionalProperties": true,
      +            "title": "Meta",
      +            "type": "object"
      +          },
      +          "tab_id": {
      +            "description": "MCP tab id captured for this operation.",
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "text_excerpt": {
      +            "title": "Text Excerpt",
      +            "type": "string"
      +          },
      +          "title": {
      +            "title": "Title",
      +            "type": "string"
      +          },
      +          "truncated": {
      +            "additionalProperties": true,
      +            "title": "Truncated",
      +            "type": "object"
      +          },
      +          "url": {
      +            "title": "Url",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "frame",
      +          "url",
      +          "title",
      +          "text_excerpt",
      +          "headings",
      +          "links",
      +          "buttons",
      +          "inputs",
      +          "forms",
      +          "counts",
      +          "truncated",
      +          "limits",
      +          "meta",
      +          "tab_id"
      +        ],
      +        "title": "FrameSnapshotData",
      +        "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

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The word 'bounded' adds a small amount of context about output truncation, but the description says nothing about frame resolution failures, timeouts, or auth/cross-origin limitations that matter for iframe inspection.

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 efficient sentence with the scoping constraint front-loaded and no filler. It is arguably too terse for a 7-parameter tool, but nothing in it is wasted.

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?

An output schema exists so return values need no explanation, and annotations cover safety. However, with 7 optional params, 43% coverage, and no framing of frame-selection or tab-defaulting behavior, an agent lacks enough to reliably choose this over page_snapshot or frame_find.

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 only 43%, so the description is expected to compensate, and it does not. It only loosely gestures at frame selection via 'selected iframe/frame'; tab_id, timeout, include_html, max_elements, and max_text_chars semantics are left unexplained beyond the schema.

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 ('Return') and resource ('page outline') with a scope qualifier ('bounded'), and the 'from a selected iframe/frame' clause naturally distinguishes it from page_snapshot. It never names a sibling explicitly, so it stops short of full differentiation.

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, when-not-to-use, or alternative-tool guidance. The only hint is that the outline comes from a frame, implying this is for iframe content, but which sibling to prefer (frame_list, frame_find, page_snapshot) is left entirely to inference.

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