@weavetab/skills 1.0.3 → 2.5.0-beta.4

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.
Files changed (79) hide show
  1. package/README.md +108 -60
  2. package/ROUTER.md +43 -0
  3. package/bin/cli.js +232 -132
  4. package/browser/dom-strategy.md +119 -0
  5. package/browser/form-automation.md +87 -0
  6. package/browser/interaction-pipeline.md +216 -0
  7. package/browser/tab-and-window.md +136 -0
  8. package/desktop/desktop-targeting.md +85 -0
  9. package/desktop/electron-discovery.md +115 -0
  10. package/developer/github-forensics.md +74 -0
  11. package/dist/bundled/weavetab-all.md +1905 -0
  12. package/dist/bundled/weavetab-browser.md +501 -0
  13. package/dist/bundled/weavetab-desktop.md +176 -0
  14. package/dist/bundled/weavetab-developer.md +67 -0
  15. package/dist/bundled/weavetab-documents.md +142 -0
  16. package/dist/bundled/weavetab-memory.md +359 -0
  17. package/dist/bundled/weavetab-network-and-perf.md +223 -0
  18. package/dist/bundled/weavetab-plugins.md +78 -0
  19. package/dist/bundled/weavetab-resilience.md +216 -0
  20. package/dist/bundled/weavetab-security.md +87 -0
  21. package/dist/granular/browser_dom-strategy.md +119 -0
  22. package/dist/granular/browser_form-automation.md +87 -0
  23. package/dist/granular/browser_interaction-pipeline.md +216 -0
  24. package/dist/granular/browser_tab-and-window.md +136 -0
  25. package/dist/granular/desktop_desktop-targeting.md +85 -0
  26. package/dist/granular/desktop_electron-discovery.md +115 -0
  27. package/dist/granular/developer_github-forensics.md +74 -0
  28. package/dist/granular/documents_canvas-and-visual-capture.md +103 -0
  29. package/dist/granular/documents_office-document-ingestion.md +63 -0
  30. package/dist/granular/memory_selector-memory-system.md +127 -0
  31. package/dist/granular/memory_session-trail.md +95 -0
  32. package/dist/granular/memory_site-learning.md +180 -0
  33. package/dist/granular/network-and-perf_device-and-environment.md +87 -0
  34. package/dist/granular/network-and-perf_network-intercept-and-mock.md +84 -0
  35. package/dist/granular/network-and-perf_performance-and-vitals.md +84 -0
  36. package/dist/granular/plugins_hooks-and-overrides.md +36 -0
  37. package/dist/granular/plugins_plugin-runtime.md +60 -0
  38. package/dist/granular/resilience_loop-breaker.md +67 -0
  39. package/dist/granular/resilience_session-time-travel.md +131 -0
  40. package/dist/granular/resilience_stale-ref-recovery.md +53 -0
  41. package/dist/granular/security_rbac-and-policies.md +47 -0
  42. package/dist/granular/security_secret-containment-protocol.md +59 -0
  43. package/documents/canvas-and-visual-capture.md +103 -0
  44. package/documents/office-document-ingestion.md +63 -0
  45. package/evals/evaluator.js +146 -0
  46. package/evals/scenarios.json +238 -0
  47. package/memory/selector-memory-system.md +127 -0
  48. package/memory/session-trail.md +95 -0
  49. package/memory/site-learning.md +180 -0
  50. package/network-and-perf/device-and-environment.md +87 -0
  51. package/network-and-perf/network-intercept-and-mock.md +84 -0
  52. package/network-and-perf/performance-and-vitals.md +84 -0
  53. package/package.json +73 -51
  54. package/plugins/hooks-and-overrides.md +36 -0
  55. package/plugins/plugin-runtime.md +60 -0
  56. package/resilience/loop-breaker.md +67 -0
  57. package/resilience/session-time-travel.md +131 -0
  58. package/resilience/stale-ref-recovery.md +53 -0
  59. package/security/rbac-and-policies.md +47 -0
  60. package/security/secret-containment-protocol.md +59 -0
  61. package/skills.json +431 -308
  62. package/src/api.js +239 -128
  63. package/advanced/README.md +0 -2
  64. package/automation/README.md +0 -2
  65. package/general/captcha-evasion.md +0 -13
  66. package/general/context-awareness.md +0 -13
  67. package/general/cookie-consent.md +0 -13
  68. package/general/data-extraction.md +0 -13
  69. package/general/dynamic-interaction.md +0 -13
  70. package/general/error-recovery.md +0 -13
  71. package/general/file-upload.md +0 -13
  72. package/general/form-filling.md +0 -16
  73. package/general/guardrails.md +0 -13
  74. package/general/iframe-handling.md +0 -13
  75. package/general/infinite-scroll.md +0 -13
  76. package/general/login-flow.md +0 -16
  77. package/general/multi-tab-management.md +0 -13
  78. package/general/spa-navigation.md +0 -13
  79. package/general/table-scraping.md +0 -13
@@ -0,0 +1,223 @@
1
+ # Weavetab Domain Profile: NETWORK-AND-PERF
2
+
3
+ Generated for @weavetab/skills v2.5.0-beta.4
4
+
5
+
6
+ ## device-and-environment
7
+
8
+ # Device Emulation & Environment Simulation
9
+
10
+ Auditing mobile responsive layouts, testing geographic restrictions, and simulating degraded network conditions can all be accomplished with `browser_emulate`.
11
+
12
+ ---
13
+
14
+ ## 1. Device Presets & Viewport Simulation
15
+
16
+ Switch from desktop to realistic mobile hardware profiles:
17
+
18
+ ```json
19
+ {
20
+ "device": "iPhone 15 Pro",
21
+ "orientation": "portrait"
22
+ }
23
+ ```
24
+
25
+ Or configure custom screen geometries:
26
+
27
+ ```json
28
+ {
29
+ "viewport": {
30
+ "width": 393,
31
+ "height": 852,
32
+ "deviceScaleFactor": 3,
33
+ "isMobile": true,
34
+ "hasTouch": true
35
+ }
36
+ }
37
+ ```
38
+
39
+ ---
40
+
41
+ ## 2. Network Throttling Simulation
42
+
43
+ Verify how web applications degrade under poor connectivity:
44
+
45
+ ```json
46
+ {
47
+ "network": {
48
+ "offline": false,
49
+ "downloadThroughput": 1024 * 500, // 500 kb/s (Slow 3G)
50
+ "uploadThroughput": 1024 * 250,
51
+ "latency": 400 // ms
52
+ }
53
+ }
54
+ ```
55
+
56
+ ---
57
+
58
+ ## 3. Geolocation & Timezone Overrides
59
+
60
+ Bypass localized IP redirects or verify localized content rendering:
61
+
62
+ ```json
63
+ {
64
+ "geolocation": {
65
+ "latitude": 37.7749,
66
+ "longitude": -122.4194,
67
+ "accuracy": 100
68
+ },
69
+ "timezoneId": "America/Los_Angeles",
70
+ "locale": "en-US"
71
+ }
72
+ ```
73
+
74
+ To reset all overrides back to default host system parameters:
75
+ ```json
76
+ {
77
+ "reset": true
78
+ }
79
+ ```
80
+
81
+
82
+ ## network-intercept-and-mock
83
+
84
+ # Network Interception, Mocking & TLS Forensics
85
+
86
+ Autonomous testing and debugging often require simulating backend error states (e.g. 500 Internal Server Error, 429 Rate Limit), stubbing third-party analytics, or verifying TLS/SSL certificates.
87
+
88
+ `browser_network_intercept` provides fine-grained CDP request and response modification.
89
+
90
+ ---
91
+
92
+ ## 1. Mocking API Responses
93
+
94
+ Intercept outgoing HTTP requests matching a URL pattern and return custom mock data:
95
+
96
+ ```json
97
+ {
98
+ "pattern": "*/api/v1/user/profile",
99
+ "response": {
100
+ "status": 200,
101
+ "headers": {
102
+ "Content-Type": "application/json"
103
+ },
104
+ "body": "{\"id\": \"usr_test\", \"role\": \"admin\", \"credits\": 9999}"
105
+ }
106
+ }
107
+ ```
108
+
109
+ ---
110
+
111
+ ## 2. Blocking Unnecessary Traffic & Trackers
112
+
113
+ Accelerate page loads and eliminate token bloat by aborting non-essential requests:
114
+
115
+ ```json
116
+ {
117
+ "pattern": "*google-analytics.com*",
118
+ "action": "abort",
119
+ "errorReason": "BlockedByClient"
120
+ }
121
+ ```
122
+
123
+ ---
124
+
125
+ ## 3. TLS / SSL Forensics & Timing Waterfalls
126
+
127
+ Extract cryptographic handshake metadata, cipher suites, expiration dates, and microsecond network waterfalls (DNS lookup, TCP connect, SSL handshake, TTFB):
128
+
129
+ ```json
130
+ {
131
+ "action": "auditTls",
132
+ "url": "https://weavetab.pages.dev"
133
+ }
134
+ ```
135
+
136
+ ### Response Example:
137
+ ```json
138
+ {
139
+ "security": {
140
+ "protocol": "TLS 1.3",
141
+ "cipher": "AES_128_GCM",
142
+ "issuer": "Let's Encrypt",
143
+ "validTo": "2026-11-15T00:00:00.000Z"
144
+ },
145
+ "waterfall": {
146
+ "dnsMs": 1.4,
147
+ "tcpMs": 3.2,
148
+ "sslMs": 4.1,
149
+ "ttfbMs": 12.8
150
+ }
151
+ }
152
+ ```
153
+
154
+
155
+ ## performance-and-vitals
156
+
157
+ # Performance Forensics & Core Web Vitals
158
+
159
+ Optimizing agent execution and auditing client performance requires objective metrics rather than arbitrary sleep timers.
160
+
161
+ ---
162
+
163
+ ## 1. Core Web Vitals Auditing (`browser_performance`)
164
+
165
+ Retrieve Google Core Web Vitals, memory consumption, and frame rendering bottlenecks directly from the Chromium engine:
166
+
167
+ ```json
168
+ {
169
+ "metrics": ["vitals", "memory", "navigationTiming"]
170
+ }
171
+ ```
172
+
173
+ ### Response Example:
174
+ ```json
175
+ {
176
+ "vitals": {
177
+ "fcp": 320,
178
+ "lcp": 780,
179
+ "cls": 0.012,
180
+ "fid": 8,
181
+ "inp": 45
182
+ },
183
+ "memory": {
184
+ "jsHeapUsedSizeMb": 42.1,
185
+ "jsHeapTotalSizeMb": 68.4
186
+ }
187
+ }
188
+ ```
189
+
190
+ ---
191
+
192
+ ## 2. Deterministic Synchronization (`browser_wait`)
193
+
194
+ > [!WARNING]
195
+ > NEVER call arbitrary fixed sleep timers (e.g. `sleep 5000`). Fixed sleeps waste user time and still fail when network latency spikes.
196
+
197
+ Always synchronize with deterministic browser conditions:
198
+
199
+ ### Wait for Network Idle:
200
+ ```json
201
+ {
202
+ "condition": "network_idle",
203
+ "timeout": 10000
204
+ }
205
+ ```
206
+
207
+ ### Wait for DOM Mutation Stability:
208
+ ```json
209
+ {
210
+ "condition": "dom_stable",
211
+ "duration": 500,
212
+ "timeout": 10000
213
+ }
214
+ ```
215
+
216
+ ### Wait for a Specific Element to Appear:
217
+ ```json
218
+ {
219
+ "condition": "element_visible",
220
+ "selector": "[data-testid=\"checkout-complete\"]",
221
+ "timeout": 15000
222
+ }
223
+ ```
@@ -0,0 +1,78 @@
1
+ # Weavetab Domain Profile: PLUGINS
2
+
3
+ Generated for @weavetab/skills v2.5.0-beta.4
4
+
5
+
6
+ ## hooks-and-overrides
7
+
8
+ # Plugin Hooks & Lifecycle Overrides
9
+
10
+ Plugins built with `@weavetab/sdk` register lifecycle hooks that run before and after tool executions. Understanding these hooks helps agents interpret metadata and custom tool responses.
11
+
12
+ ---
13
+
14
+ ## 1. Supported Plugin Hooks
15
+
16
+ 1. **`beforeToolCall(toolName, args)`**:
17
+ - Validates arguments against custom enterprise schemas.
18
+ - Injects tenant IDs, authentication headers, or proxy routing.
19
+ 2. **`afterToolCall(toolName, result, durationMs)`**:
20
+ - Emits OpenTelemetry metrics and timing waterfalls to external APM platforms.
21
+ - Enriches return objects with contextual metadata.
22
+ 3. **`onNavigate(url, targetId)`**:
23
+ - Triggers automated cookie injection or session setup upon page navigation.
24
+
25
+ ---
26
+
27
+ ## 2. Agent Operational Awareness
28
+
29
+ When plugins are active, tool return payloads may include an optional `_pluginMetadata` object containing trace IDs, custom metrics, or security audit timestamps. Agents should treat this object as informational telemetry.
30
+
31
+
32
+ ## plugin-runtime
33
+
34
+ # Plugin Runtime: Dynamic Extension Loading
35
+
36
+ Weavetab features an extensible plugin architecture powered by `@weavetab/sdk`. Agents can query loaded extensions and dynamically load community or official plugins into the live MCP runtime without restarting the server.
37
+
38
+ ---
39
+
40
+ ## 1. Inspecting Active Plugins (`list_plugins`)
41
+
42
+ Discover all installed plugins, their versions, and the tools or hooks they expose:
43
+
44
+ ```json
45
+ {}
46
+ ```
47
+
48
+ ### Response Example:
49
+ ```json
50
+ {
51
+ "plugins": [
52
+ {
53
+ "name": "@weavetab/plugin-recaptcha-solver",
54
+ "version": "1.2.0",
55
+ "status": "active",
56
+ "toolsProvided": ["captcha_solve_token"],
57
+ "hooks": ["beforeToolCall"]
58
+ }
59
+ ]
60
+ }
61
+ ```
62
+
63
+ ---
64
+
65
+ ## 2. Dynamic Runtime Loading (`load_plugin`)
66
+
67
+ Load a verified plugin package into the active runtime session:
68
+
69
+ ```json
70
+ {
71
+ "name": "@weavetab/plugin-datadog-tracer"
72
+ }
73
+ ```
74
+
75
+ ### Plugin Verification Guarantees:
76
+ - Plugins must implement the `@weavetab/sdk` standard interface.
77
+ - Loaded tools become immediately callable by the agent in subsequent turns.
78
+ - If an agent is in the `viewer` RBAC tier, `load_plugin` is rejected with `PERMISSION_DENIED`.
@@ -0,0 +1,216 @@
1
+ # Weavetab Domain Profile: RESILIENCE
2
+
3
+ Generated for @weavetab/skills v2.5.0-beta.4
4
+
5
+
6
+ ## loop-breaker
7
+
8
+ # Loop Breaker & CAPTCHA Escalation Protocol
9
+
10
+ Agents can get trapped in repetitive click loops when a button does not advance the state (e.g. failing silent validation, unhandled reCAPTCHA challenges, or modals swallowing events). Weavetab actively monitors repetitive patterns and provides circuit breakers.
11
+
12
+ ---
13
+
14
+ ## 1. Loop Detection & Strike Reset (`browser_map`)
15
+
16
+ Weavetab tracks the sequence of identical or near-identical tool invocations. If an agent calls `browser_click` or `browser_type` on the same selector or ref repeatedly without URL or major DOM mutations, the server raises a `STUCK_LOOP_WARNING`.
17
+
18
+ ### How to Break the Loop:
19
+ 1. **Analyze Why the Action Failed**: Check `browser_console` for JavaScript errors:
20
+ ```json
21
+ { "action": "read" }
22
+ ```
23
+ Or use `browser_map` to see if a validation banner or unhandled modal appeared.
24
+ 2. **Reset the Circuit Breaker**:
25
+ - Re-map with `force: true` to bypass the map skip guard, refresh the DOM view, and automatically clear loop strikes:
26
+ ```json
27
+ { "force": true }
28
+ ```
29
+
30
+ ---
31
+
32
+ ## 2. CAPTCHA Handling Protocol (`browser_captcha`)
33
+
34
+ When an automated flow is blocked by Cloudflare Turnstile, Google reCAPTCHA, or hCaptcha, do NOT repeatedly click random coordinates.
35
+
36
+ Invoke `browser_captcha` to analyze and manage the challenge:
37
+
38
+ ```json
39
+ {
40
+ "action": "detect"
41
+ }
42
+ ```
43
+
44
+ ### Response Example:
45
+ ```json
46
+ {
47
+ "detected": true,
48
+ "type": "turnstile",
49
+ "provider": "cloudflare",
50
+ "interactive": true,
51
+ "ref": "w:99"
52
+ }
53
+ ```
54
+
55
+ ### Action Strategy:
56
+ 1. If the challenge is interactive and requires human intervention (e.g. image classification), inform the user cleanly or request human bypass.
57
+ 2. If the challenge is a simple checkbox Turnstile widget, pass `"action": "solve"` or click the detected widget ref with `browser_click`.
58
+
59
+
60
+ ## session-time-travel
61
+
62
+ # Session Time-Travel & Instant State Rollback
63
+
64
+ In complex multi-step workflows (e.g. checkout funnels, multi-page configuration wizards, onboarding questionnaires), an error at Step 7 traditionally forces an agent to reload the root URL, re-authenticate, and waste 10+ turns repeating steps.
65
+
66
+ `browser_checkpoint` enables instantaneous time-travel by snapshotting and restoring complete browser session state.
67
+
68
+ ---
69
+
70
+ ## 1. What a Checkpoint Captures
71
+
72
+ A single named checkpoint atomically preserves:
73
+ - **Cookies**: Full domain cookies including `HttpOnly`, `Secure`, and `SameSite` flags.
74
+ - **Web Storage**: Entire `localStorage` and `sessionStorage` key-value maps.
75
+ - **Navigation State**: Exact page URL, scroll positions (`x`, `y`), and page title.
76
+
77
+ ---
78
+
79
+ ## 2. Checkpoint Operations
80
+
81
+ ### A. Saving a Checkpoint (`save`)
82
+ Create a checkpoint right before undertaking risky, branching, or destructive actions:
83
+
84
+ ```json
85
+ {
86
+ "action": "save",
87
+ "name": "pre_checkout_authenticated"
88
+ }
89
+ ```
90
+
91
+ ### B. Restoring a Checkpoint (`restore`)
92
+ If a downstream step errors out, times out, or hits an invalid state, roll back immediately:
93
+
94
+ ```json
95
+ {
96
+ "action": "restore",
97
+ "name": "pre_checkout_authenticated"
98
+ }
99
+ ```
100
+ *Latency: ~15ms*. The page navigates back to the checkpoint URL with cookies and storage atomically injected.
101
+
102
+ ### C. Listing Checkpoints (`list`)
103
+ Inspect all active checkpoints for the current page target:
104
+
105
+ ```json
106
+ {
107
+ "action": "list"
108
+ }
109
+ ```
110
+
111
+ ### D. Cleaning Up (`delete`)
112
+ Free memory once a workflow has concluded:
113
+
114
+ ```json
115
+ {
116
+ "action": "delete",
117
+ "name": "pre_checkout_authenticated"
118
+ }
119
+ ```
120
+
121
+ ---
122
+
123
+ ## 3. High-Leverage Agent Pattern
124
+
125
+ ```
126
+ 1. Authenticate to Target Portal
127
+ 2. browser_checkpoint({ action: "save", name: "auth_ready" })
128
+ 3. Attempt automated action sequence (e.g. form filling or testing)
129
+ 4. IF error occurs:
130
+ browser_checkpoint({ action: "restore", name: "auth_ready" })
131
+ -> Agent is immediately back at authenticated state without re-login!
132
+ ```
133
+
134
+ ---
135
+
136
+ ## 4. Fine-Grained Cookie Management (`browser_cookies`)
137
+
138
+ Inspect, set, or delete individual browser session cookies without restoring an entire checkpoint:
139
+
140
+ ```json
141
+ {
142
+ "action": "get",
143
+ "urls": ["https://example.com"]
144
+ }
145
+ ```
146
+
147
+ Or inject an authentication cookie:
148
+ ```json
149
+ {
150
+ "action": "set",
151
+ "cookies": [
152
+ {
153
+ "name": "session_token",
154
+ "value": "xyz123",
155
+ "domain": "example.com",
156
+ "httpOnly": true,
157
+ "secure": true
158
+ }
159
+ ]
160
+ }
161
+ ```
162
+
163
+ ---
164
+
165
+ ## 5. Web Storage Inspection & Injection (`browser_storage`)
166
+
167
+ Query or clear `localStorage` and `sessionStorage` keys:
168
+
169
+ ```json
170
+ {
171
+ "storageType": "localStorage",
172
+ "action": "get",
173
+ "key": "authToken"
174
+ }
175
+ ```
176
+
177
+
178
+ ## stale-ref-recovery
179
+
180
+ # Stale Ref Recovery & SPA Hydration Resilience
181
+
182
+ In modern Single Page Applications (built with React, Next.js, Vue, Nuxt, Svelte), DOM nodes are frequently destroyed and recreated during client-side hydration or reactive state updates. This often causes `STALE_ELEMENT_REFERENCE` or `NODE_DETACHED` errors when an agent attempts an action.
183
+
184
+ ---
185
+
186
+ ## 1. The 4-Tier Auto-Recovery Chain
187
+
188
+ When a tool receives a stale or missing `ref`, Weavetab does not immediately fail. It activates an internal 4-tier recovery chain:
189
+
190
+ ```
191
+ [Action on w:14 Fails / Stale]
192
+ │
193
+ ▼
194
+ [Tier 1: Stored Selector] ──▶ Re-queries cached stable selector (data-testid, id)
195
+ │ (if not found)
196
+ ▼
197
+ [Tier 2: Exact Label Match] ──▶ Queries element with identical visible text & tag
198
+ │ (if not found)
199
+ ▼
200
+ [Tier 3: Semantic Role Match] ──▶ Queries nearest sibling with matching ARIA role
201
+ │ (if not found)
202
+ ▼
203
+ [Tier 4: Fuzzy Match] ──▶ Re-anchors to highest-confidence visual candidate
204
+ ```
205
+
206
+ If the recovery chain succeeds, the action executes seamlessly and the return payload notifies the agent that the handle was refreshed.
207
+
208
+ ---
209
+
210
+ ## 2. Agent Reactive Behavior
211
+
212
+ If an action returns `ERROR: STALE_ELEMENT_REFERENCE` because all 4 recovery tiers were exhausted:
213
+
214
+ 1. **Do NOT Repeat the Identical Call**: Retrying the exact same stale `ref` (`w:14`) will fail again.
215
+ 2. **Execute a Fast Targeted Lookup**: Run `browser_find` with the text of the button or input field.
216
+ 3. **Execute the Action on the New Handle**: Use the updated handle returned by `browser_find`.
@@ -0,0 +1,87 @@
1
+ # Weavetab Domain Profile: SECURITY
2
+
3
+ Generated for @weavetab/skills v2.5.0-beta.4
4
+
5
+
6
+ ## rbac-and-policies
7
+
8
+ # Role-Based Access Control (RBAC) & Agent Guardrails
9
+
10
+ Weavetab allows developers to run untrusted or lower-privilege subagents within strict security boundaries to prevent accidental destructive operations or data leaks.
11
+
12
+ ---
13
+
14
+ ## 1. The 4 Security Tiers
15
+
16
+ | Tier | Name | Allowed Tools & Capabilities | Intended Role |
17
+ | :--- | :--- | :--- | :--- |
18
+ | **0** | `admin` | Full tool access (all 48 tools), plugin loading, arbitrary script eval, cookies/storage write. | Primary Operator / Lead Agent. |
19
+ | **1** | `operator` | Interactive tools (`browser_click`, `browser_fill`, `browser_upload`), but blocked from loading untrusted plugins. | Standard Automation Agent. |
20
+ | **2** | `automation` | Pre-approved deterministic macros (`browser_automation`), scoped form filling, no arbitrary script execution. | Background Cron / Worker. |
21
+ | **3** | `viewer` | Read-only inspection tools (`browser_map`, `browser_find`, `browser_scrape`, `browser_inspect`). All click, type, and storage tools are rejected with `PERMISSION_DENIED`. | Research Subagents / Scrapers. |
22
+
23
+ ---
24
+
25
+ ## 2. Handling `PERMISSION_DENIED` Errors
26
+
27
+ If an agent attempts an action outside its allocated role tier:
28
+ ```json
29
+ {
30
+ "error_code": "PERMISSION_DENIED",
31
+ "message": "Tool 'browser_click' is disabled under role 'viewer'. Only read operations are permitted."
32
+ }
33
+ ```
34
+
35
+ ### Protocol:
36
+ 1. Do not retry the denied tool.
37
+ 2. Delegate the interactive action to the parent agent or primary operator.
38
+ 3. Limit your output to findings gathered via read-only tools (`browser_scrape`, `browser_map`, `browser_inspect`).
39
+
40
+
41
+ ## secret-containment-protocol
42
+
43
+ # Secret Containment Protocol & Zero-Bleed Execution
44
+
45
+ AI agent transcripts, LLM providers, and tool logs represent massive attack surfaces for credential leaks. Weavetab enforces a hardware-grade **Zero-Bleed Security Guarantee** for sensitive inputs.
46
+
47
+ ---
48
+
49
+ ## 1. Entering Credentials with `browser_type_secret`
50
+
51
+ Whenever an agent inputs passwords, two-factor backup codes, credit card numbers, or proprietary API keys, you MUST use `browser_type_secret`:
52
+
53
+ ```json
54
+ {
55
+ "ref": "w:12",
56
+ "secret": "MySuperSecretPassword!2026",
57
+ "clear": true
58
+ }
59
+ ```
60
+
61
+ ---
62
+
63
+ ## 2. The Zero-Bleed Guarantee Architecture
64
+
65
+ When `browser_type_secret` is invoked:
66
+ 1. **CDP Interception**: The secret is typed via masked CDP synthetic key events.
67
+ 2. **HUD Redaction**: The browser Heads-Up Display (HUD) and visual overlay strictly renders bullets (`••••••••`).
68
+ 3. **Log Sanitization**: Console logs, MCP server logs, and JSON return values strip the secret string and return:
69
+ ```json
70
+ {
71
+ "success": true,
72
+ "message": "Secret typed successfully into ref 'w:12' (length: 26). Value redacted."
73
+ }
74
+ ```
75
+ 4. **No Re-Emission**: Never print or echo raw credentials into subsequent model thoughts or conversation messages.
76
+
77
+ ---
78
+
79
+ ## 3. Strict Operating Prohibition
80
+
81
+ > [!CAUTION]
82
+ > Under NO circumstances should an agent pass passwords or credentials to:
83
+ > - `browser_type`
84
+ > - `browser_fill`
85
+ > - `browser_eval`
86
+ >
87
+ > Doing so causes plaintext secrets to enter unmasked transcripts and tool logs.