taskwindow 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/package.json +1 -1
- package/src/tools.js +9 -5
package/README.md
CHANGED
|
@@ -77,13 +77,24 @@ agents. For another MCP client, connect to `http://127.0.0.1:9377/mcp` with
|
|
|
77
77
|
## How the isolation works
|
|
78
78
|
|
|
79
79
|
- **Task groups & sessions**: every tab the agent creates goes into a blue tab
|
|
80
|
-
group named after its task (`tabs_create`
|
|
81
|
-
|
|
80
|
+
group named after its task (the first `tabs_create` names it — it says what
|
|
81
|
+
the group is about; later tabs join the session's current group unless a new
|
|
82
|
+
task name starts another). Sessions are isolated from each other:
|
|
82
83
|
`tabs_create` returns a secret sessionToken and every browser tool call is
|
|
83
84
|
scoped to that session's groups, so concurrent agents never share tabs —
|
|
84
85
|
even when they pick the same task name. By default the agent can only see
|
|
85
86
|
and act on tabs in its own groups — never yours. You can click a group in
|
|
86
87
|
the toolbar popover to watch, and widen access in settings.
|
|
88
|
+
- **Your focus is never taken**: nothing the agent does brings a tab or window
|
|
89
|
+
forward on you. Chrome's `tabs.create` makes a new tab active by default and
|
|
90
|
+
`windows.create` focuses the new window by default; TaskWindow always opens
|
|
91
|
+
tabs in the background (a background tab still renders, so screenshots and
|
|
92
|
+
page reads work), creates the agent window unfocused, and hands focus back if
|
|
93
|
+
Chrome raises a window anyway. Mouse input is the one thing that needs a
|
|
94
|
+
visible tab, and the agent brings a tab forward for it only in a window you
|
|
95
|
+
are not looking at; if the tab is behind yours in your focused window, the
|
|
96
|
+
call fails instead of switching. Clicking a group in the popover is the only
|
|
97
|
+
thing that focuses the agent's window — and that is you asking for it.
|
|
87
98
|
- **Pairing**: the daemon listens on 127.0.0.1 only. During setup, the CLI gives
|
|
88
99
|
the extension a short-lived, single-use code; the long-lived bearer token is
|
|
89
100
|
returned only after the code is claimed. Manual codes are available with
|
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -38,17 +38,21 @@ const rawDefs = [
|
|
|
38
38
|
{
|
|
39
39
|
name: "tabs_create",
|
|
40
40
|
description:
|
|
41
|
-
"Open a new tab in a task-named tab group (in the agent's own window).
|
|
42
|
-
"
|
|
43
|
-
"
|
|
41
|
+
"Open a new tab in a task-named tab group (in the agent's own window). The tab opens in the background: it never becomes " +
|
|
42
|
+
"the active tab and never takes focus, so the user's window, tab and app stay as they are. Your first call needs a \"task\" name saying what " +
|
|
43
|
+
"the group is about and returns a sessionToken — pass it as \"sessionToken\" in every subsequent browser tool call; concurrent " +
|
|
44
|
+
"agents' sessions never share tabs. Later calls with the token need no task: the tab joins your session's current task group. " +
|
|
45
|
+
"Pass a new task name to start another group. Don't open a second tab for a page you already have: " +
|
|
44
46
|
"use reload or navigate on the existing tab (see tabs_list).",
|
|
45
47
|
inputSchema: {
|
|
46
48
|
url: z.string().url().describe("URL to open (include the scheme, e.g. https://...)"),
|
|
47
49
|
task: z
|
|
48
50
|
.string()
|
|
49
51
|
.min(1)
|
|
50
|
-
.
|
|
51
|
-
|
|
52
|
+
.optional()
|
|
53
|
+
.describe(
|
|
54
|
+
'Task name for the tab group, e.g. "Research competitors". Required on your first call; afterwards omit it to add the tab to your current task group, or pass a new name to start another.'
|
|
55
|
+
),
|
|
52
56
|
sessionToken: z
|
|
53
57
|
.string()
|
|
54
58
|
.optional()
|