Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
navigateA

导航到 URL。默认当前 tab;new_tab=true 新开 tab 并自动切换为操作指针。返回当前 tab 信息与全部 tabs 清单(switch 需要 tab_id)。

execute_jsA

在当前 tab 执行 JavaScript 代码。⚠️ 必须使用 return 语句返回结果。preset='dom_tree' 时 code 改为传 JSON 参数对象 {"max_depth":5,"include_text":true,"max_text_length":50,"selector":null},直接输出 DOM 结构树。

run_cdpA

对当前 tab 透传 Chrome DevTools Protocol 命令。method 如 'Page.captureScreenshot',params 为参数对象。命令始终作用于当前 tab,无需 attachToTarget(Target.createTarget/activateTarget 会自动切换操作 tab)。详见 get_manual。

run_drission_codeB

执行 DrissionPage Python 代码(server 进程内,完整能力底座)。预置变量:page=当前tab、browser=浏览器对象、context=跨调用持久字典、DOM_TREE_JS=DOM树JS模板。预置函数:switch_tab(tab_id)、tabs()、relaunch(**opts)。⚠️ 必须用 return 返回结果。

captureA

网络抓包三合一。action='start':在当前 tab 启动监听(⚠️ 必须在触发请求之前调用;监听挂载在该 tab,不随指针迁移);action='get':拉取结果(概览直接返回,完整数据落盘 JSON 供 read);action='stop':停止并清空。

get_manualB

返回内置编写手册:定位语法、元素动作、等待、tab 管理、抓包、CDP 高频配方、启动定制等速查。

close_browserC

关闭浏览器实例

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 7 tools

Disambiguation3/5

run_cdp, execute_js, and run_drission_code all provide code/protocol execution on the current tab, creating overlap that could confuse an agent. get_manual and close_browser are distinct, but the three execution tools lack clear boundary guidance.

Naming Consistency4/5

Mostly consistent snake_case verb_noun style (run_cdp, get_manual, close_browser, run_drission_code, execute_js), with 'capture' and 'navigate' as minor single-verb exceptions.

Tool Count5/5

Seven tools are well-scoped for a Chrome automation server, covering navigation, JS execution, CDP, network capture, manual lookup, and browser lifecycle without bloat.

Completeness4/5

Covers the core lifecycle: launch/close, navigate/tabs, JS/CDP execution, network capture, and a manual. Minor gaps exist around explicit tab management (though navigate and run_drission_code provide switch_tab/tabs), and no dedicated element-click/type tools, but coverage is strong for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo issues