multiple agents

This commit is contained in:
Josh at WLTechBlog committed 2026-07-12 18:51:47 -07:00
1 parent ec391bd7ed
commit a399e1f365
6 files changed
+499 -658

No files matched your search

+33 -2
View File
@@ -1,6 +1,26 @@
# Cremote MCP Tools - LLM Usage Guide
Cremote MCP server provides 67 web automation and accessibility testing tools. All tools accept optional `tab` (tab ID) and `timeout` (seconds, default varies) parameters unless otherwise noted.
Cremote MCP server provides 67 web automation and accessibility testing tools. Most tools accept an optional `tab` (tab ID) and `timeout` (seconds, default varies) parameter unless otherwise noted.
## Tab & Session Model (read this first)
- **Per-session current tab.** Each `cremote-mcp` process maintains its own
"current tab" in memory. When you omit `tab`, the tool targets that current
tab. There is **no shared daemon-side current tab** — that was removed because
it cannot be shared safely across multiple concurrent agents.
- **You must open/navigate a tab first.** Tools that act on a tab will error
with `no tab available - navigate to a page first` (or, for tools that wrap
the daemon directly, `tab id is required`) until you have opened a tab via
`web_navigate_cremotemcp`, `web_manage_tabs_cremotemcp` (`open`), or by
passing an explicit `url`/`tab` to a tool that accepts one.
- **Explicit `tab` always wins.** Pass `tab` when you want to operate on a
specific tab, e.g. when juggling multiple tabs via `web_manage_tabs_cremotemcp`.
- **Multi-agent safe.** Multiple agents may share one `cremotedaemon` + Chrome
instance. Each agent's MCP process holds isolated tab state and always sends
an explicit tab id to the daemon, so agents never collide. Per-tab state
(iframe context, console logs) is keyed by the globally-unique Chrome tab id.
- **Iframe context is per-tab.** `web_iframe_cremotemcp` (`enter`/`exit`)
affects only the current tab's iframe context for this session.
## 🚀 NEW: Optimized Workflows (Reduce Tool Calls by 50-70%)
@@ -273,6 +293,10 @@ Screenshot with metadata.
## Cache Control Tools
> All cache/site-data tools operate on the **current tab** (or an explicit `tab`
> if provided). A tab must already be open/navigated; otherwise they return
> `tab id is required`.
### web_disable_cache_cremotemcp
Disable browser cache for tab. No required parameters. Default timeout: 5s
@@ -669,13 +693,20 @@ Common errors:
- **Timeout**: Increase timeout parameter for slow-loading content
- **Navigation failed**: Check URL accessibility
- **File not found**: Verify file paths for upload/download operations
- **`no tab available - navigate to a page first` / `tab id is required`**: No
current tab is set in this session. Call `web_navigate_cremotemcp` (with a
`url`), `web_manage_tabs_cremotemcp` (`open`), or pass an explicit `tab`/`url`
on the tool that errored.
---
## Notes
- All tools return structured JSON responses
- Tab management is automatic if no tab ID specified
- The MCP server tracks a current tab per session; omit `tab` to use it. A tab
must be opened/navigated first (see *Tab & Session Model* above). There is no
daemon-side current tab, so omitting `tab` before any tab exists returns an
error rather than silently picking another agent's tab.
- File upload operations now auto-detect host paths and transfer to container
- Accessibility tools follow WCAG 2.1 Level AA/AAA standards
- Screenshot tools automatically copy files from container to host