Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Observe Page

page_observe
Read-onlyIdempotent

Capture a compact current-page fingerprint with URL, title, ready state, element counts, visible text samples, and console summary to inspect page state without vision models.

Instructions

Return a compact current-page fingerprint with URL, title, ready state, element counts, visible text samples, active element, and recent console summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_idNoOptional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.
max_textsNoMaximum number of visible text samples to return
max_text_charsNoMaximum characters per visible text sample

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": {
      -          "active_element": {
      -            "title": "Active Element"
      -          },
      -          "console": {
      -            "additionalProperties": true,
      -            "title": "Console",
      -            "type": "object"
      -          },
      -          "counts": {
      -            "additionalProperties": {
      -              "type": "integer"
      -            },
      -            "title": "Counts",
      -            "type": "object"
      -          },
      -          "limits": {
      -            "additionalProperties": true,
      -            "title": "Limits",
      -            "type": "object"
      -          },
      -          "ready_state": {
      -            "title": "Ready State",
      -            "type": "string"
      -          },
      -          "text_samples": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "title": "Text Samples",
      -            "type": "array"
      -          },
      -          "title": {
      -            "title": "Title",
      -            "type": "string"
      -          },
      -          "url": {
      -            "title": "Url",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "url",
      -          "title",
      -          "ready_state",
      -          "counts",
      -          "text_samples",
      -          "active_element",
      -          "console",
      -          "limits"
      -        ],
      -        "title": "PageObservation",
      -        "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": {
      +          "active_element": {
      +            "title": "Active Element"
      +          },
      +          "console": {
      +            "additionalProperties": true,
      +            "title": "Console",
      +            "type": "object"
      +          },
      +          "counts": {
      +            "additionalProperties": {
      +              "type": "integer"
      +            },
      +            "title": "Counts",
      +            "type": "object"
      +          },
      +          "limits": {
      +            "additionalProperties": true,
      +            "title": "Limits",
      +            "type": "object"
      +          },
      +          "ready_state": {
      +            "title": "Ready State",
      +            "type": "string"
      +          },
      +          "tab_id": {
      +            "description": "MCP tab id captured for this operation.",
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "text_samples": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "title": "Text Samples",
      +            "type": "array"
      +          },
      +          "title": {
      +            "title": "Title",
      +            "type": "string"
      +          },
      +          "url": {
      +            "title": "Url",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url",
      +          "title",
      +          "ready_state",
      +          "counts",
      +          "text_samples",
      +          "active_element",
      +          "console",
      +          "limits",
      +          "tab_id"
      +        ],
      +        "title": "PageObservation",
      +        "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. Changed1 schema field changedv0.7.2
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "active_element": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": true,
      -                "properties": {
      -                  "selector": {
      -                    "type": "string"
      -                  },
      -                  "tag": {
      -                    "type": "string"
      -                  },
      -                  "text": {
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "console": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "type": "boolean"
      -              },
      -              "count": {
      -                "type": "integer"
      -              },
      -              "error_count": {
      -                "type": "integer"
      -              },
      -              "listening": {
      -                "type": "boolean"
      -              },
      -              "next_cursor": {
      -                "type": "integer"
      -              },
      -              "recent": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "column": {
      -                      "type": "integer"
      -                    },
      -                    "index": {
      -                      "type": "integer"
      -                    },
      -                    "level": {
      -                      "type": "string"
      -                    },
      -                    "line": {
      -                      "type": "integer"
      -                    },
      -                    "source": {
      -                      "type": "string"
      -                    },
      -                    "text": {
      -                      "type": "string"
      -                    },
      -                    "url": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "index",
      -                    "level",
      -                    "text",
      -                    "url",
      -                    "line",
      -                    "column",
      -                    "source"
      -                  ],
      -                  "title": "ConsoleLog",
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "total": {
      -                "type": "integer"
      -              },
      -              "warning_count": {
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "listening",
      -              "count",
      -              "total",
      -              "next_cursor",
      -              "error_count",
      -              "warning_count",
      -              "recent"
      -            ],
      -            "title": "ConsoleSummary",
      -            "type": "object"
      -          },
      -          "counts": {
      -            "additionalProperties": {
      -              "type": "integer"
      -            },
      -            "type": "object"
      -          },
      -          "limits": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "max_text_chars": {
      -                "type": "integer"
      -              },
      -              "max_texts": {
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "max_texts",
      -              "max_text_chars"
      -            ],
      -            "title": "ObservationLimits",
      -            "type": "object"
      -          },
      -          "ready_state": {
      -            "type": "string"
      -          },
      -          "text_samples": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "title": {
      -            "type": "string"
      -          },
      -          "url": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "url",
      -          "title",
      -          "ready_state",
      -          "counts",
      -          "text_samples",
      -          "active_element",
      -          "console",
      -          "limits"
      -        ],
      -        "title": "PageObservation",
      -        "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": {
      +          "active_element": {
      +            "title": "Active Element"
      +          },
      +          "console": {
      +            "additionalProperties": true,
      +            "title": "Console",
      +            "type": "object"
      +          },
      +          "counts": {
      +            "additionalProperties": {
      +              "type": "integer"
      +            },
      +            "title": "Counts",
      +            "type": "object"
      +          },
      +          "limits": {
      +            "additionalProperties": true,
      +            "title": "Limits",
      +            "type": "object"
      +          },
      +          "ready_state": {
      +            "title": "Ready State",
      +            "type": "string"
      +          },
      +          "text_samples": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "title": "Text Samples",
      +            "type": "array"
      +          },
      +          "title": {
      +            "title": "Title",
      +            "type": "string"
      +          },
      +          "url": {
      +            "title": "Url",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url",
      +          "title",
      +          "ready_state",
      +          "counts",
      +          "text_samples",
      +          "active_element",
      +          "console",
      +          "limits"
      +        ],
      +        "title": "PageObservation",
      +        "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"
      +  }
      +]
  5. Addedv0.5.1

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, openWorldHint=true and destructiveHint=false, so safety behavior is covered. The description usefully discloses that the output is a 'compact' fingerprint (bounded sampling), but adds nothing about pagination, cost, or how console data is summarized.

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?

One front-loaded sentence that leads with the outcome ('compact current-page fingerprint') then itemizes contents. Efficient, though the long enumerated list reads as a spec dump rather than purpose.

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 values need not be explained, and the safety profile is in annotations. What is missing is any usage context relative to the several overlapping observation tools, which matters given this tool's sibling density.

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 100% — tab_id, max_texts and max_text_chars are each fully documented in the schema, including the null-default semantics of tab_id. The description mentions none of them, so baseline 3 applies since the schema carries the load.

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 ('Return') and resource ('current-page fingerprint') and enumerates the payload (URL, title, ready state, element counts, text samples, active element, console summary). This distinguishes it from narrower siblings like page_get_url or page_console_logs, though it never directly contrasts with the closest siblings page_snapshot and page_accessibility_snapshot.

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?

No when-to-use guidance at all. In a family containing page_snapshot, page_accessibility_snapshot, page_console_logs and page_get_url, the agent gets no hint about when this composite observe is preferable to those narrower tools, nor any preconditions.

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