style-agent
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| STYLE_AGENT_CDP_URL | No | CDP endpoint | http://127.0.0.1:9222 |
| STYLE_AGENT_SPECS_DIR | No | Spec search dir (point at your app in real use) | ./specs/examples |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| style_statusA | 检查 CDP 是否连通、列出标签。闭环开始时先调。 |
| style_tabsB | 列出调试 Chrome 中的页面标签。 |
| style_findB | 按文案/CSS/testid/role 查找元素,返回 uid(供 style_styles / style_click)。 |
| style_stylesA | 读取模块 computed style 子树(uid 或 css)。探索/对稿时用;有 spec 优先 style_inspect。 |
| style_spacingC | 两 uid 元素间距。 |
| style_clickB | 点击 uid(开下拉/弹层)。也可传 selector 走 Playwright 真实点击。 |
| style_hoverC | 悬停 uid(hover 才展开的菜单)。 |
| style_waitC | 等待元素出现(css/text/testId/role)。默认最多返回 3 条;优先用 css。 |
| style_dialogsC | 列出 dialog / aria-modal。 |
| style_highlightB | 高亮 uid(确认定位)。 |
| style_inspectA | 按 JSON spec 跑样式/布局检查(setup+nodes+relations)。默认只返回失败项。有验收标准时优先用。 |
| style_evalA | 页面内执行 JS 表达式(高级;优先其它工具)。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Tools are mostly distinct with clear roles: find vs wait, click vs hover, styles vs inspect. However, style_status and style_tabs both list tabs, and style_styles vs style_inspect overlap in reading computed styles, creating minor confusion.
All tools share the 'style_' prefix and are lowercase snake_case, forming a recognizable pattern. Some use verbs (find, click, wait) while others use nouns (tabs, dialogs, styles), deviating from a strict verb_noun convention but remaining predictable.
With 12 tools, the set is well-scoped for a style/UI inspection purpose. Each tool covers a needed action without redundancy, fitting comfortably within the ideal 3-15 range.
The toolset covers the core lifecycle: health check, locating elements, reading styles, spacing, interactions, waiting, dialog listing, and spec-based inspection. Minor gaps such as missing screenshot or scroll capabilities are workarounds, but the surface is robust for style verification.