MCP Resources & Prompts¶
WaveXisMCP exposes browser state as MCP resources and workflow templates as MCP prompts (M3).
Resources¶
Resources are read-only data exposed to LLMs via the wavexis:// URI scheme.
Available Resources¶
| URI | Description |
|---|---|
wavexis://session/{session_id}/url |
Current page URL |
wavexis://session/{session_id}/cookies |
Cookies as JSON |
wavexis://session/{session_id}/console |
Console messages as JSON |
wavexis://session/{session_id}/tabs |
Open tabs as JSON |
Usage¶
Resources are automatically available when a session is open. MCP clients can read them at any time:
GET wavexis://session/abc-123/url
→ "https://example.com"
GET wavexis://session/abc-123/cookies
→ [{"name": "session", "value": "abc"}]
Read-Only¶
Resources are strictly read-only. They cannot mutate browser state. Use tools for any state-changing operations.
Prompts¶
Prompts are workflow templates that guide LLMs through common multi-step tasks.
Available Prompts¶
scrape_page(url, selector="body")¶
Scrapes a page and extracts content. Guides the LLM through:
- Open a session
- Navigate to the URL
- Scrape with the selector
- Close the session
- Return extracted content
audit_page(url)¶
Runs a full accessibility and performance audit. Guides the LLM through:
- Open a session with a11y + devtools tiers
- Navigate to the URL
- Run axe-core audit
- Get performance metrics
- Take a11y snapshot
- Summarize findings
fill_form(url, fields)¶
Fills a form on a page. Guides the LLM through:
- Open a session
- Navigate to the URL
- Take a11y snapshot to identify fields
- Fill each field
- Screenshot to verify
- Report results
debug_page(url)¶
Debugs a page (console, network, performance). Guides the LLM through:
- Open a session with network + devtools tiers
- Navigate to the URL
- Capture console messages
- List network requests
- Get performance metrics
- Check security state
- Summarize issues
Templates Only¶
Prompts are templates — they do not execute actions themselves. The LLM receives the template and uses the listed tools to perform the workflow.