Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
STYLE_AGENT_CDP_URLNoCDP endpointhttp://127.0.0.1:9222
STYLE_AGENT_SPECS_DIRNoSpec search dir (point at your app in real use)./specs/examples

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jtrslar/style-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server