Skip to main content
Glama

读取蓝湖元素标注样式

lanhu_inspect_element

Inspect a specified layer ID or browser viewport point to read true annotations—position, size, typography, color, and text—and copy verified fields without inferring missing values.

Instructions

点击指定图层 ID 或浏览器视口坐标,切换 Web/px 并读取右侧真实标注:位置、尺寸、字体、字重、字号、行高、字距、颜色和原文。可逐字段点击复制并核对,缺失字段不推测。禁止截图识别替代。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "lanhu_inspect_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes蓝湖分享或页面 URL
pointNo浏览器视口 CSS 像素坐标,不是设计稿逻辑坐标
layerIdNo当前设计版本的图层 ID;与 point 二选一
copyFieldsNo额外点击右侧字段并核对复制值;结束后恢复浏览器剪贴板

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose behavior beyond a bare read: it switches the panel to Web/px units, click-copies each field and verifies the copied value, and does not guess at missing fields. Clipboard side effects and session prerequisites are not spelled out here, but the schema covers the clipboard restore.

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?

The definition is short, front-loaded with the action and scope, and the field list is compact. The final prohibition sentence is imperative in tone but still earns its place as a routing constraint; no filler sentences are present.

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?

There is no output schema, so the description correctly compensates by naming the returned fields (position, size, font, weight, size, line-height, letter-spacing, color, original text). Structure of the return value and any pagination or error cases are not described, which keeps it out of the top band for a browser-driving tool.

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 the schema already explains url, point (viewport CSS px, not design logical px), layerId exclusivity, and the copyFields enum. The description restates layerId/point selection and hints at per-field copying but adds no syntax or format detail the schema lacks, so the baseline 3 applies.

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 opens with a specific action (click a given layer ID or viewport coordinate, toggle Web/px) and a concrete resource (the right-hand annotation panel), then enumerates the exact fields returned. An agent can tell this is a single-element style read. It does not explicitly contrast with the plural sibling lanhu_inspect_elements, so it stops 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 Guidelines4/5

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

"点击指定图层 ID 或浏览器视口坐标" frames the two selection modes, and "禁止截图识别替代" explicitly rules out a competing approach (screenshot/OCR via a capture tool), which is genuine when-not guidance. What is missing is a positive pointer to which tool to use when the element is not reachable or when multiple elements are needed.

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