Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port3000
TIMEOUTNoDefault operation timeout (ms)30000
HEADLESSNoRun browser headlesstrue

Tools

Functions exposed to the LLM to take actions

NameDescription
list_tabs

List all open browser tabs with their IDs, URLs, and titles

new_tab

Open a new browser tab, optionally navigating to a URL. The new tab becomes active.

close_tab

Close a browser tab. If no tabId provided, closes the active tab.

switch_tab

Switch to a different tab, making it the active tab for subsequent operations.

navigate

Navigate to a URL in the browser

reload

Reload the current page

go_back

Navigate back in browser history

go_forward

Navigate forward in browser history

click

Click an element on the page

fill

Fill a text input or textarea with a value

select

Select option(s) from a dropdown/select element

hover

Hover over an element on the page

focus

Focus an element on the page

evaluate

Execute JavaScript code in the browser context and return the result

get_content

Get the HTML or text content of the page or a specific element

query_selector

Get information about an element matching a CSS selector

wait_for_selector

Wait for an element matching the selector to appear in the page

wait_for_navigation

Wait for the page to navigate to a new URL

wait

Wait for a specified number of milliseconds

screenshot

Capture a screenshot of the page or a specific element

pdf

Generate a PDF of the current page

get_cookies

Get cookies for the current page or specified URLs

set_cookies

Set cookies in the browser

delete_cookies

Delete cookies by name

keyboard

Press a key or key combination

mouse

Perform mouse actions at specific coordinates

scroll

Scroll the page or a specific element

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/andytango/puppeteer-mcp'

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