Open
Bug 2081622
Opened 1 month ago
Updated 1 month ago
[firefox-devtools-mcp] Let tools target a tab explicitly, and report which tab each result comes from
Categories
(Developer Infrastructure :: Firefox MCP, enhancement)
Developer Infrastructure
Firefox MCP
Tracking
(Not tracked)
NEW
People
(Reporter: jdescottes, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
The server tracks one global selected page (currentContextId in FirefoxCore). Every tool acts on that page. Tool calls have no lock, and responses never say which tab they come from.
So parallel calls can hit the wrong tab. For example, a get_page_text call sent together with a select_page call returned the text of the previous tab.
Proposal:
- Add an optional tab argument (a browsing context id) to the tools that act on a page.
- Include the tab id in every response.
- Keep the selected page as the default when no tab is given.
This would also make it easier to handle a closed tab correctly, and to avoid focusing tabs when they do not need to be selected.
You need to log in
before you can comment on or make changes to this bug.
Description
•