@agentruntime-labs/browser-agent 0.0.0-stage → 0.1.0
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 +214 -2
- package/bin/browser-agent.js +2 -0
- package/cli/hosts.mjs +53 -0
- package/cli/main.mjs +156 -0
- package/cli/mcp.mjs +42 -0
- package/extension/approval.html +56 -0
- package/extension/approval.js +54 -0
- package/extension/background.js +711 -0
- package/extension/constants.js +4 -0
- package/extension/content.js +1160 -0
- package/extension/manifest.json +23 -0
- package/extension/popup.html +56 -0
- package/extension/popup.js +166 -0
- package/package.json +42 -4
- package/server/dist/arBrowserPaths.d.ts +11 -0
- package/server/dist/arBrowserPaths.d.ts.map +1 -0
- package/server/dist/arBrowserPaths.js +93 -0
- package/server/dist/arBrowserPaths.js.map +1 -0
- package/server/dist/automationSession.d.ts +49 -0
- package/server/dist/automationSession.d.ts.map +1 -0
- package/server/dist/automationSession.js +225 -0
- package/server/dist/automationSession.js.map +1 -0
- package/server/dist/bridge.d.ts +43 -0
- package/server/dist/bridge.d.ts.map +1 -0
- package/server/dist/bridge.js +307 -0
- package/server/dist/bridge.js.map +1 -0
- package/server/dist/browserToolsExtras.d.ts +5 -0
- package/server/dist/browserToolsExtras.d.ts.map +1 -0
- package/server/dist/browserToolsExtras.js +304 -0
- package/server/dist/browserToolsExtras.js.map +1 -0
- package/server/dist/compositeTools.d.ts +12 -0
- package/server/dist/compositeTools.d.ts.map +1 -0
- package/server/dist/compositeTools.js +43 -0
- package/server/dist/compositeTools.js.map +1 -0
- package/server/dist/debugSnapshot.d.ts +13 -0
- package/server/dist/debugSnapshot.d.ts.map +1 -0
- package/server/dist/debugSnapshot.js +54 -0
- package/server/dist/debugSnapshot.js.map +1 -0
- package/server/dist/guardrails.d.ts +8 -0
- package/server/dist/guardrails.d.ts.map +1 -0
- package/server/dist/guardrails.js +24 -0
- package/server/dist/guardrails.js.map +1 -0
- package/server/dist/humanLike.d.ts +24 -0
- package/server/dist/humanLike.d.ts.map +1 -0
- package/server/dist/humanLike.js +97 -0
- package/server/dist/humanLike.js.map +1 -0
- package/server/dist/main.d.ts +2 -0
- package/server/dist/main.d.ts.map +1 -0
- package/server/dist/main.js +79 -0
- package/server/dist/main.js.map +1 -0
- package/server/dist/policyTiers.d.ts +3 -0
- package/server/dist/policyTiers.d.ts.map +1 -0
- package/server/dist/policyTiers.js +9 -0
- package/server/dist/policyTiers.js.map +1 -0
- package/server/dist/protocol.d.ts +62 -0
- package/server/dist/protocol.d.ts.map +1 -0
- package/server/dist/protocol.js +55 -0
- package/server/dist/protocol.js.map +1 -0
- package/server/dist/richEditorFill.d.ts +7 -0
- package/server/dist/richEditorFill.d.ts.map +1 -0
- package/server/dist/richEditorFill.js +27 -0
- package/server/dist/richEditorFill.js.map +1 -0
- package/server/dist/screenshotCrop.d.ts +11 -0
- package/server/dist/screenshotCrop.d.ts.map +1 -0
- package/server/dist/screenshotCrop.js +17 -0
- package/server/dist/screenshotCrop.js.map +1 -0
- package/server/dist/sessionLog.d.ts +42 -0
- package/server/dist/sessionLog.d.ts.map +1 -0
- package/server/dist/sessionLog.js +112 -0
- package/server/dist/sessionLog.js.map +1 -0
- package/server/dist/sessionPhase.d.ts +5 -0
- package/server/dist/sessionPhase.d.ts.map +1 -0
- package/server/dist/sessionPhase.js +24 -0
- package/server/dist/sessionPhase.js.map +1 -0
- package/server/dist/sessionSummary.d.ts +16 -0
- package/server/dist/sessionSummary.d.ts.map +1 -0
- package/server/dist/sessionSummary.js +70 -0
- package/server/dist/sessionSummary.js.map +1 -0
- package/server/dist/skillsInstructions.d.ts +5 -0
- package/server/dist/skillsInstructions.d.ts.map +1 -0
- package/server/dist/skillsInstructions.js +45 -0
- package/server/dist/skillsInstructions.js.map +1 -0
- package/server/dist/structureFilter.d.ts +21 -0
- package/server/dist/structureFilter.d.ts.map +1 -0
- package/server/dist/structureFilter.js +22 -0
- package/server/dist/structureFilter.js.map +1 -0
- package/server/dist/surveyCatalog.d.ts +10 -0
- package/server/dist/surveyCatalog.d.ts.map +1 -0
- package/server/dist/surveyCatalog.js +59 -0
- package/server/dist/surveyCatalog.js.map +1 -0
- package/server/dist/surveyRunner.d.ts +28 -0
- package/server/dist/surveyRunner.d.ts.map +1 -0
- package/server/dist/surveyRunner.js +109 -0
- package/server/dist/surveyRunner.js.map +1 -0
- package/server/dist/toolHelpers.d.ts +44 -0
- package/server/dist/toolHelpers.d.ts.map +1 -0
- package/server/dist/toolHelpers.js +83 -0
- package/server/dist/toolHelpers.js.map +1 -0
- package/server/dist/toolRuntime.d.ts +41 -0
- package/server/dist/toolRuntime.d.ts.map +1 -0
- package/server/dist/toolRuntime.js +263 -0
- package/server/dist/toolRuntime.js.map +1 -0
- package/server/dist/toolSchemas.d.ts +431 -0
- package/server/dist/toolSchemas.d.ts.map +1 -0
- package/server/dist/toolSchemas.js +408 -0
- package/server/dist/toolSchemas.js.map +1 -0
- package/server/dist/tools.d.ts +5 -0
- package/server/dist/tools.d.ts.map +1 -0
- package/server/dist/tools.js +484 -0
- package/server/dist/tools.js.map +1 -0
- package/server/dist/verdictExtract.d.ts +7 -0
- package/server/dist/verdictExtract.d.ts.map +1 -0
- package/server/dist/verdictExtract.js +24 -0
- package/server/dist/verdictExtract.js.map +1 -0
- package/server/dist/workflowTools.d.ts +5 -0
- package/server/dist/workflowTools.d.ts.map +1 -0
- package/server/dist/workflowTools.js +96 -0
- package/server/dist/workflowTools.js.map +1 -0
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tool output schemas (Zod) — validated structuredContent for clients.
|
|
3
|
+
* Use type aliases (not interfaces) for inferred outputs per MCP SDK guidance.
|
|
4
|
+
*/
|
|
5
|
+
import * as z from 'zod';
|
|
6
|
+
export declare const CurrentTabOutput: z.ZodObject<{
|
|
7
|
+
tabId: z.ZodNumber;
|
|
8
|
+
title: z.ZodOptional<z.ZodString>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
windowId: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
export type CurrentTabOutput = z.infer<typeof CurrentTabOutput>;
|
|
14
|
+
export declare const TabMinimal: z.ZodObject<{
|
|
15
|
+
tabId: z.ZodNumber;
|
|
16
|
+
title: z.ZodOptional<z.ZodString>;
|
|
17
|
+
url: z.ZodOptional<z.ZodString>;
|
|
18
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
export declare const GetTabsOutput: z.ZodObject<{
|
|
21
|
+
tabs: z.ZodArray<z.ZodObject<{
|
|
22
|
+
tabId: z.ZodNumber;
|
|
23
|
+
title: z.ZodOptional<z.ZodString>;
|
|
24
|
+
url: z.ZodOptional<z.ZodString>;
|
|
25
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
export type GetTabsOutput = z.infer<typeof GetTabsOutput>;
|
|
29
|
+
export declare const NavigateOutput: z.ZodObject<{
|
|
30
|
+
navigated: z.ZodLiteral<true>;
|
|
31
|
+
tabId: z.ZodNumber;
|
|
32
|
+
url: z.ZodOptional<z.ZodString>;
|
|
33
|
+
pendingUrl: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
export type NavigateOutput = z.infer<typeof NavigateOutput>;
|
|
36
|
+
export declare const GetPageTextOutput: z.ZodObject<{
|
|
37
|
+
url: z.ZodOptional<z.ZodString>;
|
|
38
|
+
text: z.ZodString;
|
|
39
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
sourceLength: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
verdictExcerpt: z.ZodOptional<z.ZodString>;
|
|
42
|
+
verdictMatched: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
|
+
export type GetPageTextOutput = z.infer<typeof GetPageTextOutput>;
|
|
45
|
+
export declare const RectOutput: z.ZodObject<{
|
|
46
|
+
x: z.ZodNumber;
|
|
47
|
+
y: z.ZodNumber;
|
|
48
|
+
w: z.ZodNumber;
|
|
49
|
+
h: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const StructureNodeOutput: z.ZodObject<{
|
|
52
|
+
ref: z.ZodString;
|
|
53
|
+
role: z.ZodString;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
rect: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
x: z.ZodNumber;
|
|
58
|
+
y: z.ZodNumber;
|
|
59
|
+
w: z.ZodNumber;
|
|
60
|
+
h: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
63
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
64
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
|
+
export declare const GetPageStructureOutput: z.ZodObject<{
|
|
67
|
+
url: z.ZodString;
|
|
68
|
+
viewport: z.ZodObject<{
|
|
69
|
+
width: z.ZodNumber;
|
|
70
|
+
height: z.ZodNumber;
|
|
71
|
+
scrollX: z.ZodNumber;
|
|
72
|
+
scrollY: z.ZodNumber;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
76
|
+
ref: z.ZodString;
|
|
77
|
+
role: z.ZodString;
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
rect: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
x: z.ZodNumber;
|
|
82
|
+
y: z.ZodNumber;
|
|
83
|
+
w: z.ZodNumber;
|
|
84
|
+
h: z.ZodNumber;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
87
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
88
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$loose>>;
|
|
90
|
+
}, z.core.$loose>;
|
|
91
|
+
export type GetPageStructureOutput = z.infer<typeof GetPageStructureOutput>;
|
|
92
|
+
export declare const ClickElementOutput: z.ZodObject<{
|
|
93
|
+
clicked: z.ZodBoolean;
|
|
94
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$loose>;
|
|
96
|
+
export declare const FillInputOutput: z.ZodObject<{
|
|
97
|
+
filled: z.ZodBoolean;
|
|
98
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$loose>;
|
|
100
|
+
export declare const ScreenshotVisibleOutput: z.ZodObject<{
|
|
101
|
+
mimeType: z.ZodString;
|
|
102
|
+
dataBase64: z.ZodString;
|
|
103
|
+
}, z.core.$loose>;
|
|
104
|
+
export declare const GetSelectedTextOutput: z.ZodObject<{
|
|
105
|
+
text: z.ZodString;
|
|
106
|
+
empty: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
}, z.core.$loose>;
|
|
108
|
+
export declare const WaitOutput: z.ZodObject<{
|
|
109
|
+
ok: z.ZodBoolean;
|
|
110
|
+
waitedMs: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
}, z.core.$loose>;
|
|
112
|
+
export declare const AskConfirmationApproved: z.ZodObject<{
|
|
113
|
+
decision: z.ZodLiteral<"approved">;
|
|
114
|
+
approvalToken: z.ZodString;
|
|
115
|
+
approvedAt: z.ZodString;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const AskConfirmationDenied: z.ZodObject<{
|
|
118
|
+
decision: z.ZodLiteral<"denied">;
|
|
119
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export declare const AskConfirmationOutput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
|
+
decision: z.ZodLiteral<"approved">;
|
|
123
|
+
approvalToken: z.ZodString;
|
|
124
|
+
approvedAt: z.ZodString;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
decision: z.ZodLiteral<"denied">;
|
|
127
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>], "decision">;
|
|
129
|
+
export type AskConfirmationOutput = z.infer<typeof AskConfirmationOutput>;
|
|
130
|
+
export declare const PressKeyOutput: z.ZodObject<{
|
|
131
|
+
sent: z.ZodBoolean;
|
|
132
|
+
key: z.ZodOptional<z.ZodString>;
|
|
133
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
}, z.core.$loose>;
|
|
135
|
+
export declare const ScrollOutput: z.ZodObject<{
|
|
136
|
+
scrolled: z.ZodBoolean;
|
|
137
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
138
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
139
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$loose>;
|
|
141
|
+
export declare const SelectOptionOutput: z.ZodObject<{
|
|
142
|
+
selected: z.ZodBoolean;
|
|
143
|
+
ref: z.ZodString;
|
|
144
|
+
value: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$loose>;
|
|
146
|
+
export declare const HoverOutput: z.ZodObject<{
|
|
147
|
+
hovered: z.ZodBoolean;
|
|
148
|
+
ref: z.ZodString;
|
|
149
|
+
}, z.core.$loose>;
|
|
150
|
+
export declare const GoBackOutput: z.ZodObject<{
|
|
151
|
+
wentBack: z.ZodBoolean;
|
|
152
|
+
tabId: z.ZodNumber;
|
|
153
|
+
}, z.core.$loose>;
|
|
154
|
+
export declare const ReloadOutput: z.ZodObject<{
|
|
155
|
+
reloaded: z.ZodBoolean;
|
|
156
|
+
tabId: z.ZodNumber;
|
|
157
|
+
}, z.core.$loose>;
|
|
158
|
+
export declare const TabOpenOutput: z.ZodObject<{
|
|
159
|
+
tabId: z.ZodNumber;
|
|
160
|
+
url: z.ZodOptional<z.ZodString>;
|
|
161
|
+
title: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$loose>;
|
|
163
|
+
export declare const TabCloseOutput: z.ZodObject<{
|
|
164
|
+
closed: z.ZodBoolean;
|
|
165
|
+
tabId: z.ZodNumber;
|
|
166
|
+
}, z.core.$loose>;
|
|
167
|
+
export declare const TabActivateOutput: z.ZodObject<{
|
|
168
|
+
activated: z.ZodBoolean;
|
|
169
|
+
tabId: z.ZodNumber;
|
|
170
|
+
}, z.core.$loose>;
|
|
171
|
+
export declare const WaitForOutput: z.ZodObject<{
|
|
172
|
+
ok: z.ZodBoolean;
|
|
173
|
+
matched: z.ZodOptional<z.ZodString>;
|
|
174
|
+
waitedMs: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
url: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.core.$loose>;
|
|
177
|
+
export declare const FindNodesOutput: z.ZodObject<{
|
|
178
|
+
count: z.ZodNumber;
|
|
179
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
180
|
+
ref: z.ZodString;
|
|
181
|
+
role: z.ZodString;
|
|
182
|
+
name: z.ZodString;
|
|
183
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
rect: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
x: z.ZodNumber;
|
|
186
|
+
y: z.ZodNumber;
|
|
187
|
+
w: z.ZodNumber;
|
|
188
|
+
h: z.ZodNumber;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
191
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
192
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
193
|
+
}, z.core.$loose>>;
|
|
194
|
+
}, z.core.$loose>;
|
|
195
|
+
export declare const ScreenshotElementOutput: z.ZodObject<{
|
|
196
|
+
mimeType: z.ZodString;
|
|
197
|
+
dataBase64: z.ZodString;
|
|
198
|
+
}, z.core.$loose>;
|
|
199
|
+
export declare const ConsoleLogEntryOutput: z.ZodObject<{
|
|
200
|
+
t: z.ZodNumber;
|
|
201
|
+
level: z.ZodString;
|
|
202
|
+
msg: z.ZodString;
|
|
203
|
+
}, z.core.$loose>;
|
|
204
|
+
export declare const ConsoleRecentOutput: z.ZodObject<{
|
|
205
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
206
|
+
t: z.ZodNumber;
|
|
207
|
+
level: z.ZodString;
|
|
208
|
+
msg: z.ZodString;
|
|
209
|
+
}, z.core.$loose>>;
|
|
210
|
+
}, z.core.$loose>;
|
|
211
|
+
export declare const NetworkEntryOutput: z.ZodObject<{
|
|
212
|
+
url: z.ZodString;
|
|
213
|
+
statusCode: z.ZodNumber;
|
|
214
|
+
method: z.ZodString;
|
|
215
|
+
ts: z.ZodNumber;
|
|
216
|
+
type: z.ZodString;
|
|
217
|
+
}, z.core.$loose>;
|
|
218
|
+
export declare const NetworkRecentOutput: z.ZodObject<{
|
|
219
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
220
|
+
url: z.ZodString;
|
|
221
|
+
statusCode: z.ZodNumber;
|
|
222
|
+
method: z.ZodString;
|
|
223
|
+
ts: z.ZodNumber;
|
|
224
|
+
type: z.ZodString;
|
|
225
|
+
}, z.core.$loose>>;
|
|
226
|
+
}, z.core.$loose>;
|
|
227
|
+
export declare const EvaluateOutput: z.ZodObject<{
|
|
228
|
+
ok: z.ZodBoolean;
|
|
229
|
+
result: z.ZodOptional<z.ZodString>;
|
|
230
|
+
error: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$loose>;
|
|
232
|
+
export declare const FileInputOutput: z.ZodObject<{
|
|
233
|
+
set: z.ZodBoolean;
|
|
234
|
+
ref: z.ZodString;
|
|
235
|
+
name: z.ZodOptional<z.ZodString>;
|
|
236
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
}, z.core.$loose>;
|
|
238
|
+
export declare const ElementScreenRectOutput: z.ZodObject<{
|
|
239
|
+
screenX: z.ZodNumber;
|
|
240
|
+
screenY: z.ZodNumber;
|
|
241
|
+
width: z.ZodNumber;
|
|
242
|
+
height: z.ZodNumber;
|
|
243
|
+
centerX: z.ZodNumber;
|
|
244
|
+
centerY: z.ZodNumber;
|
|
245
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
x: z.ZodNumber;
|
|
247
|
+
y: z.ZodNumber;
|
|
248
|
+
w: z.ZodNumber;
|
|
249
|
+
h: z.ZodNumber;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
left: z.ZodNumber;
|
|
253
|
+
top: z.ZodNumber;
|
|
254
|
+
width: z.ZodNumber;
|
|
255
|
+
height: z.ZodNumber;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
chromeInsets: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
left: z.ZodNumber;
|
|
259
|
+
top: z.ZodNumber;
|
|
260
|
+
dpr: z.ZodNumber;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
mapping: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, z.core.$loose>;
|
|
264
|
+
export declare const AssertOutput: z.ZodObject<{
|
|
265
|
+
pass: z.ZodBoolean;
|
|
266
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.core.$loose>;
|
|
268
|
+
export declare const DebugSnapshotOutput: z.ZodObject<{
|
|
269
|
+
capturedAt: z.ZodString;
|
|
270
|
+
tab: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
271
|
+
structure: z.ZodObject<{
|
|
272
|
+
url: z.ZodString;
|
|
273
|
+
viewport: z.ZodObject<{
|
|
274
|
+
width: z.ZodNumber;
|
|
275
|
+
height: z.ZodNumber;
|
|
276
|
+
scrollX: z.ZodNumber;
|
|
277
|
+
scrollY: z.ZodNumber;
|
|
278
|
+
}, z.core.$loose>;
|
|
279
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
281
|
+
ref: z.ZodString;
|
|
282
|
+
role: z.ZodString;
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
rect: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
x: z.ZodNumber;
|
|
287
|
+
y: z.ZodNumber;
|
|
288
|
+
w: z.ZodNumber;
|
|
289
|
+
h: z.ZodNumber;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
292
|
+
inputType: z.ZodOptional<z.ZodString>;
|
|
293
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$loose>>;
|
|
295
|
+
}, z.core.$loose>;
|
|
296
|
+
pageTextPreview: z.ZodObject<{
|
|
297
|
+
url: z.ZodOptional<z.ZodString>;
|
|
298
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
+
sourceLength: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
text: z.ZodOptional<z.ZodString>;
|
|
301
|
+
}, z.core.$loose>;
|
|
302
|
+
networkRecent: z.ZodObject<{
|
|
303
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
304
|
+
url: z.ZodString;
|
|
305
|
+
statusCode: z.ZodNumber;
|
|
306
|
+
method: z.ZodString;
|
|
307
|
+
ts: z.ZodNumber;
|
|
308
|
+
type: z.ZodString;
|
|
309
|
+
}, z.core.$loose>>;
|
|
310
|
+
}, z.core.$loose>;
|
|
311
|
+
diagnostics: z.ZodObject<{
|
|
312
|
+
nodeCount: z.ZodNumber;
|
|
313
|
+
textLength: z.ZodNumber;
|
|
314
|
+
structureEmpty: z.ZodBoolean;
|
|
315
|
+
url: z.ZodOptional<z.ZodUnknown>;
|
|
316
|
+
hint: z.ZodOptional<z.ZodUnknown>;
|
|
317
|
+
structureStats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
318
|
+
}, z.core.$loose>;
|
|
319
|
+
screenshot: z.ZodOptional<z.ZodObject<{
|
|
320
|
+
mimeType: z.ZodString;
|
|
321
|
+
dataBase64: z.ZodString;
|
|
322
|
+
}, z.core.$loose>>;
|
|
323
|
+
consoleRecent: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
325
|
+
t: z.ZodNumber;
|
|
326
|
+
level: z.ZodString;
|
|
327
|
+
msg: z.ZodString;
|
|
328
|
+
}, z.core.$loose>>;
|
|
329
|
+
}, z.core.$loose>>;
|
|
330
|
+
}, z.core.$loose>;
|
|
331
|
+
/** Parse extension JSON into structured MCP output; throws on mismatch. */
|
|
332
|
+
export declare function asStructured<O extends z.ZodType>(schema: O, data: unknown): z.infer<O>;
|
|
333
|
+
export declare const SessionOpenOutput: z.ZodObject<{
|
|
334
|
+
automationSessionId: z.ZodString;
|
|
335
|
+
arBrowserRoot: z.ZodString;
|
|
336
|
+
active: z.ZodBoolean;
|
|
337
|
+
createdAt: z.ZodString;
|
|
338
|
+
}, z.core.$loose>;
|
|
339
|
+
export type SessionOpenOutput = z.infer<typeof SessionOpenOutput>;
|
|
340
|
+
export declare const SessionResumeOutput: z.ZodObject<{
|
|
341
|
+
automationSessionId: z.ZodString;
|
|
342
|
+
active: z.ZodBoolean;
|
|
343
|
+
updatedAt: z.ZodString;
|
|
344
|
+
needsEvidenceAfterNavigate: z.ZodBoolean;
|
|
345
|
+
}, z.core.$loose>;
|
|
346
|
+
export type SessionResumeOutput = z.infer<typeof SessionResumeOutput>;
|
|
347
|
+
export declare const BotDetectorTargetOutput: z.ZodObject<{
|
|
348
|
+
id: z.ZodString;
|
|
349
|
+
name: z.ZodString;
|
|
350
|
+
url: z.ZodString;
|
|
351
|
+
waitUrlContains: z.ZodString;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
export declare const BotDetectorCatalogOutput: z.ZodObject<{
|
|
354
|
+
automationSessionId: z.ZodString;
|
|
355
|
+
arBrowserRoot: z.ZodString;
|
|
356
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
357
|
+
id: z.ZodString;
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
url: z.ZodString;
|
|
360
|
+
waitUrlContains: z.ZodString;
|
|
361
|
+
}, z.core.$strip>>;
|
|
362
|
+
}, z.core.$loose>;
|
|
363
|
+
export type BotDetectorCatalogOutput = z.infer<typeof BotDetectorCatalogOutput>;
|
|
364
|
+
export declare const FillAndSubmitOutput: z.ZodObject<{
|
|
365
|
+
filled: z.ZodBoolean;
|
|
366
|
+
submitted: z.ZodBoolean;
|
|
367
|
+
submitMethod: z.ZodEnum<{
|
|
368
|
+
enter: "enter";
|
|
369
|
+
click: "click";
|
|
370
|
+
none: "none";
|
|
371
|
+
}>;
|
|
372
|
+
urlBefore: z.ZodOptional<z.ZodString>;
|
|
373
|
+
url: z.ZodOptional<z.ZodString>;
|
|
374
|
+
tabId: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, z.core.$loose>;
|
|
377
|
+
export declare const ExtensionStatusOutput: z.ZodObject<{
|
|
378
|
+
extensionConnected: z.ZodBoolean;
|
|
379
|
+
bridgePort: z.ZodNumber;
|
|
380
|
+
requireSessionToken: z.ZodBoolean;
|
|
381
|
+
}, z.core.$loose>;
|
|
382
|
+
export declare const SessionSummaryOutput: z.ZodObject<{
|
|
383
|
+
automationSessionId: z.ZodString;
|
|
384
|
+
logPath: z.ZodString;
|
|
385
|
+
toolCount: z.ZodNumber;
|
|
386
|
+
errorCount: z.ZodNumber;
|
|
387
|
+
waitForTimeouts: z.ZodNumber;
|
|
388
|
+
toolsByName: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
389
|
+
verdictsCaptured: z.ZodNumber;
|
|
390
|
+
urls: z.ZodArray<z.ZodString>;
|
|
391
|
+
}, z.core.$loose>;
|
|
392
|
+
export declare const SurveyStartOutput: z.ZodObject<{
|
|
393
|
+
automationSessionId: z.ZodString;
|
|
394
|
+
tier: z.ZodEnum<{
|
|
395
|
+
light: "light";
|
|
396
|
+
heavy: "heavy";
|
|
397
|
+
}>;
|
|
398
|
+
targetCount: z.ZodNumber;
|
|
399
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
400
|
+
id: z.ZodString;
|
|
401
|
+
name: z.ZodString;
|
|
402
|
+
url: z.ZodString;
|
|
403
|
+
}, z.core.$strip>>;
|
|
404
|
+
}, z.core.$loose>;
|
|
405
|
+
export declare const SurveyNextOutput: z.ZodObject<{
|
|
406
|
+
automationSessionId: z.ZodString;
|
|
407
|
+
status: z.ZodEnum<{
|
|
408
|
+
navigate: "navigate";
|
|
409
|
+
capture_evidence: "capture_evidence";
|
|
410
|
+
complete: "complete";
|
|
411
|
+
}>;
|
|
412
|
+
message: z.ZodString;
|
|
413
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
index: z.ZodNumber;
|
|
415
|
+
total: z.ZodNumber;
|
|
416
|
+
completed: z.ZodNumber;
|
|
417
|
+
}, z.core.$strip>>;
|
|
418
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
id: z.ZodString;
|
|
420
|
+
name: z.ZodString;
|
|
421
|
+
url: z.ZodString;
|
|
422
|
+
waitUrlContains: z.ZodString;
|
|
423
|
+
}, z.core.$strip>>;
|
|
424
|
+
completed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
name: z.ZodString;
|
|
427
|
+
url: z.ZodString;
|
|
428
|
+
verdictExcerpt: z.ZodOptional<z.ZodString>;
|
|
429
|
+
}, z.core.$strip>>>;
|
|
430
|
+
}, z.core.$loose>;
|
|
431
|
+
//# sourceMappingURL=toolSchemas.d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