screen_scan_ui_elements

扫描当前窗口所有 UI 元素(文字、图标、按钮等),生成带像素特征的 JSON 文件。整合 OCR、UIA、边缘检测多种识别方法,并对每个元素进行多点采样生成颜色特征。输出文件保存在 app_layouts/{app_name}/{app_name}_icon_features.json。

Server Screen Agent lqszhsp/screen-agent
Category Read
Risk class Low
Parameters 00 required

What screen_scan_ui_elements does on Screen Agent

AI agents call screen_scan_ui_elements to retrieve information from Screen Agent without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Why screen_scan_ui_elements needs a policy

This tool performs UI element recognition and feature extraction through observation and analysis (OCR, edge detection, color sampling). It reads/scans the current window state and generates informational output (JSON with features) without modifying data, executing arbitrary code, or triggering side effects.

From the tool's definition The tool 'scans all UI elements in the current window (text, icons, buttons, etc.) and generates a JSON file with pixel features' using 'OCR, UIA, edge detection' and 'multi-point color sampling'.

Questions about screen_scan_ui_elements

What does the screen_scan_ui_elements tool do? +

扫描当前窗口所有 UI 元素(文字、图标、按钮等),生成带像素特征的 JSON 文件。整合 OCR、UIA、边缘检测多种识别方法,并对每个元素进行多点采样生成颜色特征。输出文件保存在 app_layouts/{app_name}/{app_name}_icon_features.json。. It is categorised as a Read tool in the Screen Agent MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on screen_scan_ui_elements? +

Register the Screen Agent MCP server in PolicyLayer and add a rule for screen_scan_ui_elements: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Screen Agent. Nothing to install.

What risk level is screen_scan_ui_elements? +

screen_scan_ui_elements is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit screen_scan_ui_elements? +

Yes. Add a rate_limit block to the screen_scan_ui_elements rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block screen_scan_ui_elements completely? +

Set action: deny in the PolicyLayer policy for screen_scan_ui_elements. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides screen_scan_ui_elements? +

screen_scan_ui_elements is provided by the Screen Agent MCP server (lqszhsp/screen-agent). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.