poltertab 1.7.0-beta.1 → 1.7.0-beta.3

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 CHANGED
@@ -196,7 +196,7 @@ next use.
196
196
  | `browser_session_create` | `name` (required), `url`, `tabId` | Create a session, adopt an open tab, or bind one to the active tab |
197
197
  | `browser_session_switch` | `name` (required) | Make a session active, recovering its tab if closed |
198
198
  | `browser_session_list` | — | All sessions, each `alive`, `recoverable`, or `expired` |
199
- | `browser_session_close` | `name` (required) | Close a session and its tab |
199
+ | `browser_session_close` | `name` (required), `force` | Close a session and its tab. Adopted tabs return `needs_user_permission`; retry with `force: true` after asking the user. |
200
200
  | `browser_session_context` | — | The current tab's id, URL, title and session, or `closedTabId` |
201
201
 
202
202
  ### Tabs
@@ -433,11 +433,16 @@ const BROWSER_TOOLS = [
433
433
  },
434
434
  {
435
435
  name: "browser_session_close",
436
- description: "Close a tracked session",
436
+ description:
437
+ "Close a tracked session and its tab. Tabs not opened by PolterTab — including ones adopted via browser_session_create({tabId}) — require the user's permission: the tool returns code needs_user_permission with the tab's id, title and url; ask the user, then retry with force: true.",
437
438
  inputSchema: {
438
439
  type: "object",
439
440
  properties: {
440
441
  name: { type: "string" },
442
+ force: {
443
+ type: "boolean",
444
+ description: "Close a tab the user opened. Only when the user asked.",
445
+ },
441
446
  },
442
447
  required: ["name"],
443
448
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poltertab",
3
- "version": "1.7.0-beta.1",
3
+ "version": "1.7.0-beta.3",
4
4
  "description": "Let any AI assistant drive and scrape your existing Chrome profile — no headless browser, no complex setup.",
5
5
  "bin": {
6
6
  "poltertab": "./bin/poltertab.js"