Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Console Logs

page_console_logs
Read-onlyIdempotent

Read browser console messages from the current tab, filter by level, paginate with a cursor, and cap results to diagnose page errors.

Instructions

Read bounded browser console messages from the current tab. Supports level filtering, cursor pagination, and a maximum result limit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoConsole level filter: all, error, warning, warn, info, or log.all
limitNoMaximum number of console entries to return.
sinceNoReturn only log entries with index greater than this cursor.
tab_idNoOptional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.

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": {
      -          "available": {
      -            "title": "Available",
      -            "type": "boolean"
      -          },
      -          "count": {
      -            "title": "Count",
      -            "type": "integer"
      -          },
      -          "listening": {
      -            "title": "Listening",
      -            "type": "boolean"
      -          },
      -          "logs": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "title": "Logs",
      -            "type": "array"
      -          },
      -          "next_cursor": {
      -            "title": "Next Cursor",
      -            "type": "integer"
      -          },
      -          "total": {
      -            "title": "Total",
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "available",
      -          "listening",
      -          "count",
      -          "total",
      -          "next_cursor",
      -          "logs"
      -        ],
      -        "title": "ConsoleLogsData",
      -        "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": {
      +          "available": {
      +            "title": "Available",
      +            "type": "boolean"
      +          },
      +          "count": {
      +            "title": "Count",
      +            "type": "integer"
      +          },
      +          "listening": {
      +            "title": "Listening",
      +            "type": "boolean"
      +          },
      +          "logs": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "title": "Logs",
      +            "type": "array"
      +          },
      +          "next_cursor": {
      +            "title": "Next Cursor",
      +            "type": "integer"
      +          },
      +          "tab_id": {
      +            "description": "MCP tab id captured for this operation.",
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "total": {
      +            "title": "Total",
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "available",
      +          "listening",
      +          "count",
      +          "total",
      +          "next_cursor",
      +          "logs",
      +          "tab_id"
      +        ],
      +        "title": "ConsoleLogsData",
      +        "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.7.2
  3. Removedv0.7.2
  4. Addedv0.5.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, covering the safety profile. The description adds that reads are 'bounded' and support filtering/pagination, which is useful but not rich behavioral context beyond what schema and annotations already provide.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core action and followed by feature scope. No wasted words and easy to scan.

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

Completeness4/5

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

For a simple read-only tool with rich annotations, a 100%-covered schema, and an output schema, the description sufficiently conveys purpose and capabilities. It lacks usage context or alternatives, but otherwise complete enough to call correctly.

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%, so each parameter is already documented in the schema. The description's mention of level filtering, cursor pagination, and a maximum limit mirrors the parameters but adds no syntax, format, or edge-case meaning 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 ('Read'), resource ('bounded browser console messages'), and scope ('current tab'), which is clear and precise. However, it does not explicitly differentiate from any sibling tool, so it falls short of the 5 criteria for sibling 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?

The description lists capabilities (level filtering, cursor pagination, limit) but gives no when-to-use guidance, no conditions, and no alternatives. Usage is only implied by the tool name and purpose.

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