Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HTTP_HOSTNoHost for HTTP transport. Default is '127.0.0.1'.
HTTP_PORTNoPort for HTTP transport. Default is '3000'.
LOG_LEVELNoLogging level. Default is 'info'.
TRANSPORTNoTransport mode override, e.g., 'http'.
AWI_CDP_URLNoExplicit CDP endpoint; overrides browser mode.
AWI_STEALTHNoEnable stealth mode. Default is 'true'.
CHROME_PATHNoPath to Chrome executable.
AWI_HEADLESSNoRun browser headless: 'true' or 'false'. Default is 'false'.
BRING_TO_FRONTNoSet to 'true' to focus the Chrome tab before each action.
CEF_BRIDGE_HOSTNoCDP host for CEF bridge connection. Default is '127.0.0.1'.
CEF_BRIDGE_PORTNoCDP port for CEF bridge connection. Default is '9223'.
AWI_BROWSER_MODENoBrowser mode: 'user', 'persistent', or 'isolated'. Default is auto fallback.
AWI_TRIM_REGIONSNoSet to 'false' to disable region trimming globally. Default is 'true'.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
pingA

Check if the server is responsive

list_pagesA

List all open browser pages with their page_id, URL, and title.

close_pageA

Close a browser tab. Use list_pages first to get the page_id.

navigateB

Go to a URL. Returns page snapshot with interactive elements.

go_backA

Go back one page in browser history. Returns a fresh page snapshot of the resulting page with its interactive elements.

go_forwardA

Go forward one page in browser history. Returns a fresh page snapshot of the resulting page with its interactive elements.

reloadA

Refresh the current page. Use after a change that only takes effect on reload, or to recover from a stale page. Returns a fresh page snapshot with its interactive elements.

snapshotA

Re-capture the page state without performing any action. Use when the page may have changed on its own (timers, live updates, animations).

findA

Locate elements or read page text without acting on them. Two modes: filter by kind/label/region to find interactive elements (returns each match with a stable eid for use with click, type, select, etc.), or set include_readable to also get text content tagged with semantic rd-* ids. Best for pinpointing a target before an action or pulling specific content; use snapshot for the whole page. Returns matching elements/content as XML.

get_elementA

Get complete details for one element: exact position, size, state, and attributes. Requires an eid obtained from find or snapshot. Use when you need precise geometry or full attribute/state data for a single element. Returns the element details as XML.

screenshotA

Capture a screenshot of the current page or a specific element. Use for visual verification or when layout/rendering matters; prefer snapshot or find for reading structure and text. Returns the image inline, or a file path when the image is large.

scroll_toA

Scroll until a specific element (by eid) is visible in the viewport. Use before clicking or reading an element that find/snapshot reports as off-screen. Returns a fresh page snapshot reflecting the new scroll position.

scrollA

Scroll the viewport up or down by a pixel amount. Use to reveal more of a long page or trigger lazy-loaded content; use scroll_to when you know the target element. Returns a fresh page snapshot reflecting the new scroll position.

clickA

Click an element (by eid) or at viewport coordinates. Prefer eid for reliability; use coordinates only for canvas or non-semantic targets. Returns a fresh page snapshot with the changes the click produced.

typeA

Type text into an input field or text area (by eid). Set clear to replace existing content instead of appending. Returns a fresh page snapshot reflecting the updated field and any resulting changes (validation, autocomplete, etc.).

pressA

Press a single keyboard key with optional modifiers, dispatched to the focused element. Use for submitting with Enter, dismissing with Escape, or keyboard navigation (Tab, arrows); use type to enter text. Returns a fresh page snapshot with any resulting changes.

selectA

Choose an option from a dropdown menu by value or visible text.

hoverA

Move mouse over an element without clicking. Triggers hover menus and tooltips.

dragA

Drag from a source point to a target point (optionally relative to an element via eid). Use for reordering lists, moving sliders/handles, or manipulating canvas objects. Returns a fresh page snapshot with any resulting changes.

wheelA

Dispatch a mouse wheel event at specific coordinates. Use for scroll-to-zoom (with Control modifier) or horizontal scrolling.

inspect_canvasA

Analyze a canvas element: auto-detect the rendering library, query its scene graph, and return an annotated screenshot with coordinate grid overlay.

get_formA

Analyze all forms on the page: fields, required inputs, validation rules, and field dependencies. Call this first on any multi-field or multi-step form to plan the fill order, instead of scrolling and screenshotting. Returns each form as XML with per-field eids, state, constraints, and the suggested next field to fill.

get_fieldA

Get detailed info about one form field (by eid): purpose, valid input formats, dependencies, and suggested values. Use to resolve a field get_form flagged as ambiguous or invalid before typing into it. Returns the field context as XML including constraints, options, and dependencies.

read_pageA

Extract the main readable content from the page, removing navigation, ads, and clutter. Uses Mozilla Readability (Firefox Reader View engine). Best for articles, blog posts, documentation, and content-heavy pages.

list_network_callsA

List HTTP requests and responses made by the page. Filter by resource type, method, status code, or URL pattern; supports pagination. Use after navigate or an action to inspect API traffic, confirm a request fired, or find failing calls (e.g. status_min=400). Returns request/response summaries as XML.

search_network_callsA

Search network calls by URL pattern (substring or regex). Use when you know part of the endpoint URL and want just those calls, optionally with headers and request body; use list_network_calls to browse all traffic. Returns matching requests as XML with optional headers and body details.

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/lespaceman/agent-web-interface'

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