@wingman-ai/gateway 0.5.3 → 0.5.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 (311) hide show
  1. package/dist/agent/config/agentConfig.cjs +4 -0
  2. package/dist/agent/config/agentConfig.d.ts +12 -0
  3. package/dist/agent/config/agentConfig.js +4 -0
  4. package/dist/agent/config/toolRegistry.cjs +75 -1
  5. package/dist/agent/config/toolRegistry.d.ts +3 -0
  6. package/dist/agent/config/toolRegistry.js +75 -1
  7. package/dist/agent/middleware/large-tool-results.cjs +207 -0
  8. package/dist/agent/middleware/large-tool-results.d.ts +16 -0
  9. package/dist/agent/middleware/large-tool-results.js +173 -0
  10. package/dist/agent/tools/browser_control.cjs +9 -1231
  11. package/dist/agent/tools/browser_control.d.ts +126 -234
  12. package/dist/agent/tools/browser_control.js +7 -1226
  13. package/dist/agent/tools/browser_runtime.cjs +1189 -0
  14. package/dist/agent/tools/browser_runtime.d.ts +560 -0
  15. package/dist/agent/tools/browser_runtime.js +1122 -0
  16. package/dist/agent/tools/browser_session.cjs +153 -0
  17. package/dist/agent/tools/browser_session.d.ts +741 -0
  18. package/dist/agent/tools/browser_session.js +110 -0
  19. package/dist/agent/tools/browser_session_manager.cjs +202 -0
  20. package/dist/agent/tools/browser_session_manager.d.ts +64 -0
  21. package/dist/agent/tools/browser_session_manager.js +165 -0
  22. package/dist/cli/commands/init.cjs +5 -1
  23. package/dist/cli/commands/init.js +5 -1
  24. package/dist/cli/config/loader.cjs +0 -5
  25. package/dist/cli/config/loader.js +0 -5
  26. package/dist/cli/config/schema.cjs +3 -7
  27. package/dist/cli/config/schema.d.ts +6 -6
  28. package/dist/cli/config/schema.js +3 -7
  29. package/dist/cli/core/agentInvoker.cjs +86 -22
  30. package/dist/cli/core/agentInvoker.d.ts +10 -3
  31. package/dist/cli/core/agentInvoker.js +86 -25
  32. package/dist/cli/core/outputManager.cjs +7 -2
  33. package/dist/cli/core/outputManager.d.ts +2 -2
  34. package/dist/cli/core/outputManager.js +7 -2
  35. package/dist/cli/types.d.ts +2 -1
  36. package/dist/webui/assets/index-XrEnkZiq.css +11 -0
  37. package/dist/webui/assets/index-mDs6HbKM.js +215 -0
  38. package/dist/webui/index.html +2 -2
  39. package/package.json +10 -10
  40. package/templates/agents/README.md +2 -1
  41. package/templates/agents/coding/agent.md +6 -13
  42. package/templates/agents/coding-v2/agent.md +6 -1
  43. package/templates/agents/game-dev/agent.md +8 -2
  44. package/templates/agents/game-dev/game-designer.md +4 -0
  45. package/templates/agents/game-dev/scene-engineer.md +4 -0
  46. package/templates/agents/main/agent.md +5 -0
  47. package/templates/agents/researcher/agent.md +11 -0
  48. package/templates/agents/stock-trader/agent.md +4 -0
  49. package/dist/agent/tests/agentConfig.test.cjs +0 -224
  50. package/dist/agent/tests/agentConfig.test.d.ts +0 -1
  51. package/dist/agent/tests/agentConfig.test.js +0 -218
  52. package/dist/agent/tests/agentLoader.test.cjs +0 -335
  53. package/dist/agent/tests/agentLoader.test.d.ts +0 -1
  54. package/dist/agent/tests/agentLoader.test.js +0 -329
  55. package/dist/agent/tests/backgroundTerminal.test.cjs +0 -70
  56. package/dist/agent/tests/backgroundTerminal.test.d.ts +0 -1
  57. package/dist/agent/tests/backgroundTerminal.test.js +0 -64
  58. package/dist/agent/tests/browserControlHelpers.test.cjs +0 -35
  59. package/dist/agent/tests/browserControlHelpers.test.d.ts +0 -1
  60. package/dist/agent/tests/browserControlHelpers.test.js +0 -29
  61. package/dist/agent/tests/browserControlTool.test.cjs +0 -2117
  62. package/dist/agent/tests/browserControlTool.test.d.ts +0 -1
  63. package/dist/agent/tests/browserControlTool.test.js +0 -2111
  64. package/dist/agent/tests/commandExecuteTool.test.cjs +0 -29
  65. package/dist/agent/tests/commandExecuteTool.test.d.ts +0 -1
  66. package/dist/agent/tests/commandExecuteTool.test.js +0 -23
  67. package/dist/agent/tests/internet_search.test.cjs +0 -107
  68. package/dist/agent/tests/internet_search.test.d.ts +0 -1
  69. package/dist/agent/tests/internet_search.test.js +0 -101
  70. package/dist/agent/tests/mcpClientManager.test.cjs +0 -290
  71. package/dist/agent/tests/mcpClientManager.test.d.ts +0 -1
  72. package/dist/agent/tests/mcpClientManager.test.js +0 -284
  73. package/dist/agent/tests/mcpResourceTools.test.cjs +0 -101
  74. package/dist/agent/tests/mcpResourceTools.test.d.ts +0 -1
  75. package/dist/agent/tests/mcpResourceTools.test.js +0 -95
  76. package/dist/agent/tests/modelFactory.test.cjs +0 -190
  77. package/dist/agent/tests/modelFactory.test.d.ts +0 -1
  78. package/dist/agent/tests/modelFactory.test.js +0 -184
  79. package/dist/agent/tests/terminalSessionManager.test.cjs +0 -121
  80. package/dist/agent/tests/terminalSessionManager.test.d.ts +0 -1
  81. package/dist/agent/tests/terminalSessionManager.test.js +0 -115
  82. package/dist/agent/tests/test-agent-loader.cjs +0 -33
  83. package/dist/agent/tests/test-agent-loader.d.ts +0 -1
  84. package/dist/agent/tests/test-agent-loader.js +0 -27
  85. package/dist/agent/tests/test-subagent-loading.cjs +0 -99
  86. package/dist/agent/tests/test-subagent-loading.d.ts +0 -1
  87. package/dist/agent/tests/test-subagent-loading.js +0 -93
  88. package/dist/agent/tests/toolRegistry.test.cjs +0 -147
  89. package/dist/agent/tests/toolRegistry.test.d.ts +0 -1
  90. package/dist/agent/tests/toolRegistry.test.js +0 -141
  91. package/dist/agent/tests/uiRegistryTools.test.cjs +0 -114
  92. package/dist/agent/tests/uiRegistryTools.test.d.ts +0 -1
  93. package/dist/agent/tests/uiRegistryTools.test.js +0 -105
  94. package/dist/agent/tests/xaiImageModel.test.cjs +0 -194
  95. package/dist/agent/tests/xaiImageModel.test.d.ts +0 -1
  96. package/dist/agent/tests/xaiImageModel.test.js +0 -188
  97. package/dist/tests/additionalMessageMiddleware.test.cjs +0 -216
  98. package/dist/tests/additionalMessageMiddleware.test.d.ts +0 -1
  99. package/dist/tests/additionalMessageMiddleware.test.js +0 -188
  100. package/dist/tests/agent-config-voice.test.cjs +0 -25
  101. package/dist/tests/agent-config-voice.test.d.ts +0 -1
  102. package/dist/tests/agent-config-voice.test.js +0 -19
  103. package/dist/tests/agentInvokerAttachments.test.cjs +0 -190
  104. package/dist/tests/agentInvokerAttachments.test.d.ts +0 -1
  105. package/dist/tests/agentInvokerAttachments.test.js +0 -184
  106. package/dist/tests/agentInvokerSummarization.test.cjs +0 -613
  107. package/dist/tests/agentInvokerSummarization.test.d.ts +0 -1
  108. package/dist/tests/agentInvokerSummarization.test.js +0 -607
  109. package/dist/tests/agentInvokerTokenUsage.test.cjs +0 -124
  110. package/dist/tests/agentInvokerTokenUsage.test.d.ts +0 -1
  111. package/dist/tests/agentInvokerTokenUsage.test.js +0 -118
  112. package/dist/tests/agentInvokerWorkdir.test.cjs +0 -150
  113. package/dist/tests/agentInvokerWorkdir.test.d.ts +0 -1
  114. package/dist/tests/agentInvokerWorkdir.test.js +0 -122
  115. package/dist/tests/agents-api.test.cjs +0 -324
  116. package/dist/tests/agents-api.test.d.ts +0 -1
  117. package/dist/tests/agents-api.test.js +0 -318
  118. package/dist/tests/attachments-utils.test.cjs +0 -46
  119. package/dist/tests/attachments-utils.test.d.ts +0 -1
  120. package/dist/tests/attachments-utils.test.js +0 -40
  121. package/dist/tests/browser-command.test.cjs +0 -264
  122. package/dist/tests/browser-command.test.d.ts +0 -1
  123. package/dist/tests/browser-command.test.js +0 -258
  124. package/dist/tests/browser-relay-server.test.cjs +0 -20
  125. package/dist/tests/browser-relay-server.test.d.ts +0 -1
  126. package/dist/tests/browser-relay-server.test.js +0 -14
  127. package/dist/tests/bunSqliteAdapter.test.cjs +0 -265
  128. package/dist/tests/bunSqliteAdapter.test.d.ts +0 -1
  129. package/dist/tests/bunSqliteAdapter.test.js +0 -259
  130. package/dist/tests/candleRange.test.cjs +0 -48
  131. package/dist/tests/candleRange.test.d.ts +0 -1
  132. package/dist/tests/candleRange.test.js +0 -42
  133. package/dist/tests/cli-config-loader.test.cjs +0 -532
  134. package/dist/tests/cli-config-loader.test.d.ts +0 -1
  135. package/dist/tests/cli-config-loader.test.js +0 -526
  136. package/dist/tests/cli-config-warnings.test.cjs +0 -94
  137. package/dist/tests/cli-config-warnings.test.d.ts +0 -1
  138. package/dist/tests/cli-config-warnings.test.js +0 -88
  139. package/dist/tests/cli-init.test.cjs +0 -225
  140. package/dist/tests/cli-init.test.d.ts +0 -1
  141. package/dist/tests/cli-init.test.js +0 -219
  142. package/dist/tests/cli-workspace-root.test.cjs +0 -114
  143. package/dist/tests/cli-workspace-root.test.d.ts +0 -1
  144. package/dist/tests/cli-workspace-root.test.js +0 -108
  145. package/dist/tests/codex-credentials-precedence.test.cjs +0 -94
  146. package/dist/tests/codex-credentials-precedence.test.d.ts +0 -1
  147. package/dist/tests/codex-credentials-precedence.test.js +0 -88
  148. package/dist/tests/codex-provider.test.cjs +0 -383
  149. package/dist/tests/codex-provider.test.d.ts +0 -1
  150. package/dist/tests/codex-provider.test.js +0 -377
  151. package/dist/tests/config-json-schema.test.cjs +0 -37
  152. package/dist/tests/config-json-schema.test.d.ts +0 -1
  153. package/dist/tests/config-json-schema.test.js +0 -31
  154. package/dist/tests/discord-adapter.test.cjs +0 -89
  155. package/dist/tests/discord-adapter.test.d.ts +0 -1
  156. package/dist/tests/discord-adapter.test.js +0 -83
  157. package/dist/tests/falRuntime.test.cjs +0 -78
  158. package/dist/tests/falRuntime.test.d.ts +0 -1
  159. package/dist/tests/falRuntime.test.js +0 -72
  160. package/dist/tests/falSummary.test.cjs +0 -51
  161. package/dist/tests/falSummary.test.d.ts +0 -1
  162. package/dist/tests/falSummary.test.js +0 -45
  163. package/dist/tests/fs-api.test.cjs +0 -138
  164. package/dist/tests/fs-api.test.d.ts +0 -1
  165. package/dist/tests/fs-api.test.js +0 -132
  166. package/dist/tests/gateway-command-workspace.test.cjs +0 -150
  167. package/dist/tests/gateway-command-workspace.test.d.ts +0 -1
  168. package/dist/tests/gateway-command-workspace.test.js +0 -144
  169. package/dist/tests/gateway-http-security.test.cjs +0 -318
  170. package/dist/tests/gateway-http-security.test.d.ts +0 -1
  171. package/dist/tests/gateway-http-security.test.js +0 -312
  172. package/dist/tests/gateway-node-mode.test.cjs +0 -174
  173. package/dist/tests/gateway-node-mode.test.d.ts +0 -1
  174. package/dist/tests/gateway-node-mode.test.js +0 -168
  175. package/dist/tests/gateway-origin-policy.test.cjs +0 -82
  176. package/dist/tests/gateway-origin-policy.test.d.ts +0 -1
  177. package/dist/tests/gateway-origin-policy.test.js +0 -76
  178. package/dist/tests/gateway-request-execution-overrides.test.cjs +0 -42
  179. package/dist/tests/gateway-request-execution-overrides.test.d.ts +0 -1
  180. package/dist/tests/gateway-request-execution-overrides.test.js +0 -36
  181. package/dist/tests/gateway.test.cjs +0 -700
  182. package/dist/tests/gateway.test.d.ts +0 -1
  183. package/dist/tests/gateway.test.js +0 -694
  184. package/dist/tests/hooks-matcher.test.cjs +0 -309
  185. package/dist/tests/hooks-matcher.test.d.ts +0 -1
  186. package/dist/tests/hooks-matcher.test.js +0 -303
  187. package/dist/tests/hooks-merger.test.cjs +0 -528
  188. package/dist/tests/hooks-merger.test.d.ts +0 -1
  189. package/dist/tests/hooks-merger.test.js +0 -522
  190. package/dist/tests/imagePersistence.test.cjs +0 -169
  191. package/dist/tests/imagePersistence.test.d.ts +0 -1
  192. package/dist/tests/imagePersistence.test.js +0 -163
  193. package/dist/tests/integration/agent-invocation.integration.test.cjs +0 -264
  194. package/dist/tests/integration/agent-invocation.integration.test.d.ts +0 -1
  195. package/dist/tests/integration/agent-invocation.integration.test.js +0 -258
  196. package/dist/tests/integration/finnhub-candles.integration.test.cjs +0 -98
  197. package/dist/tests/integration/finnhub-candles.integration.test.d.ts +0 -1
  198. package/dist/tests/integration/finnhub-candles.integration.test.js +0 -92
  199. package/dist/tests/integration/summarization-e2e.integration.test.cjs +0 -127
  200. package/dist/tests/integration/summarization-e2e.integration.test.d.ts +0 -1
  201. package/dist/tests/integration/summarization-e2e.integration.test.js +0 -121
  202. package/dist/tests/logger.test.cjs +0 -353
  203. package/dist/tests/logger.test.d.ts +0 -1
  204. package/dist/tests/logger.test.js +0 -347
  205. package/dist/tests/mediaCompatibilityMiddleware.test.cjs +0 -106
  206. package/dist/tests/mediaCompatibilityMiddleware.test.d.ts +0 -1
  207. package/dist/tests/mediaCompatibilityMiddleware.test.js +0 -100
  208. package/dist/tests/node-tools.test.cjs +0 -77
  209. package/dist/tests/node-tools.test.d.ts +0 -1
  210. package/dist/tests/node-tools.test.js +0 -71
  211. package/dist/tests/nodes-api.test.cjs +0 -86
  212. package/dist/tests/nodes-api.test.d.ts +0 -1
  213. package/dist/tests/nodes-api.test.js +0 -80
  214. package/dist/tests/outputManagerContextSummarized.test.cjs +0 -43
  215. package/dist/tests/outputManagerContextSummarized.test.d.ts +0 -1
  216. package/dist/tests/outputManagerContextSummarized.test.js +0 -37
  217. package/dist/tests/provider-command-codex.test.cjs +0 -57
  218. package/dist/tests/provider-command-codex.test.d.ts +0 -1
  219. package/dist/tests/provider-command-codex.test.js +0 -51
  220. package/dist/tests/routines-api.test.cjs +0 -107
  221. package/dist/tests/routines-api.test.d.ts +0 -1
  222. package/dist/tests/routines-api.test.js +0 -101
  223. package/dist/tests/run-terminal-bench-official-script.test.cjs +0 -61
  224. package/dist/tests/run-terminal-bench-official-script.test.d.ts +0 -1
  225. package/dist/tests/run-terminal-bench-official-script.test.js +0 -55
  226. package/dist/tests/sessionManager-uionly.test.cjs +0 -50
  227. package/dist/tests/sessionManager-uionly.test.d.ts +0 -1
  228. package/dist/tests/sessionManager-uionly.test.js +0 -44
  229. package/dist/tests/sessionMessageAttachments.test.cjs +0 -197
  230. package/dist/tests/sessionMessageAttachments.test.d.ts +0 -1
  231. package/dist/tests/sessionMessageAttachments.test.js +0 -191
  232. package/dist/tests/sessionMessageRole.test.cjs +0 -44
  233. package/dist/tests/sessionMessageRole.test.d.ts +0 -1
  234. package/dist/tests/sessionMessageRole.test.js +0 -38
  235. package/dist/tests/sessionStateMessages.test.cjs +0 -236
  236. package/dist/tests/sessionStateMessages.test.d.ts +0 -1
  237. package/dist/tests/sessionStateMessages.test.js +0 -230
  238. package/dist/tests/sessions-api.test.cjs +0 -250
  239. package/dist/tests/sessions-api.test.d.ts +0 -1
  240. package/dist/tests/sessions-api.test.js +0 -244
  241. package/dist/tests/skill-activation.test.cjs +0 -86
  242. package/dist/tests/skill-activation.test.d.ts +0 -1
  243. package/dist/tests/skill-activation.test.js +0 -80
  244. package/dist/tests/skill-metadata.test.cjs +0 -119
  245. package/dist/tests/skill-metadata.test.d.ts +0 -1
  246. package/dist/tests/skill-metadata.test.js +0 -113
  247. package/dist/tests/skill-repository.test.cjs +0 -469
  248. package/dist/tests/skill-repository.test.d.ts +0 -1
  249. package/dist/tests/skill-repository.test.js +0 -463
  250. package/dist/tests/skill-security-scanner.test.cjs +0 -126
  251. package/dist/tests/skill-security-scanner.test.d.ts +0 -1
  252. package/dist/tests/skill-security-scanner.test.js +0 -120
  253. package/dist/tests/sms-api.test.cjs +0 -183
  254. package/dist/tests/sms-api.test.d.ts +0 -1
  255. package/dist/tests/sms-api.test.js +0 -177
  256. package/dist/tests/sms-commands.test.cjs +0 -90
  257. package/dist/tests/sms-commands.test.d.ts +0 -1
  258. package/dist/tests/sms-commands.test.js +0 -84
  259. package/dist/tests/sms-policy-store.test.cjs +0 -69
  260. package/dist/tests/sms-policy-store.test.d.ts +0 -1
  261. package/dist/tests/sms-policy-store.test.js +0 -63
  262. package/dist/tests/teams-adapter.test.cjs +0 -58
  263. package/dist/tests/teams-adapter.test.d.ts +0 -1
  264. package/dist/tests/teams-adapter.test.js +0 -52
  265. package/dist/tests/technicalIndicators.test.cjs +0 -82
  266. package/dist/tests/technicalIndicators.test.d.ts +0 -1
  267. package/dist/tests/technicalIndicators.test.js +0 -76
  268. package/dist/tests/terminal-bench-adapters-helpers.test.cjs +0 -64
  269. package/dist/tests/terminal-bench-adapters-helpers.test.d.ts +0 -1
  270. package/dist/tests/terminal-bench-adapters-helpers.test.js +0 -58
  271. package/dist/tests/terminal-bench-cleanup.test.cjs +0 -93
  272. package/dist/tests/terminal-bench-cleanup.test.d.ts +0 -1
  273. package/dist/tests/terminal-bench-cleanup.test.js +0 -87
  274. package/dist/tests/terminal-bench-config.test.cjs +0 -62
  275. package/dist/tests/terminal-bench-config.test.d.ts +0 -1
  276. package/dist/tests/terminal-bench-config.test.js +0 -56
  277. package/dist/tests/terminal-bench-official.test.cjs +0 -194
  278. package/dist/tests/terminal-bench-official.test.d.ts +0 -1
  279. package/dist/tests/terminal-bench-official.test.js +0 -188
  280. package/dist/tests/terminal-bench-runner.test.cjs +0 -82
  281. package/dist/tests/terminal-bench-runner.test.d.ts +0 -1
  282. package/dist/tests/terminal-bench-runner.test.js +0 -76
  283. package/dist/tests/terminal-bench-scoring.test.cjs +0 -128
  284. package/dist/tests/terminal-bench-scoring.test.d.ts +0 -1
  285. package/dist/tests/terminal-bench-scoring.test.js +0 -122
  286. package/dist/tests/terminalProbe.test.cjs +0 -45
  287. package/dist/tests/terminalProbe.test.d.ts +0 -1
  288. package/dist/tests/terminalProbe.test.js +0 -39
  289. package/dist/tests/terminalProbeAuth.test.cjs +0 -85
  290. package/dist/tests/terminalProbeAuth.test.d.ts +0 -1
  291. package/dist/tests/terminalProbeAuth.test.js +0 -79
  292. package/dist/tests/toolDisplayHelpers.test.cjs +0 -46
  293. package/dist/tests/toolDisplayHelpers.test.d.ts +0 -1
  294. package/dist/tests/toolDisplayHelpers.test.js +0 -40
  295. package/dist/tests/uv.test.cjs +0 -47
  296. package/dist/tests/uv.test.d.ts +0 -1
  297. package/dist/tests/uv.test.js +0 -41
  298. package/dist/tests/voice-config.test.cjs +0 -35
  299. package/dist/tests/voice-config.test.d.ts +0 -1
  300. package/dist/tests/voice-config.test.js +0 -29
  301. package/dist/tests/websocket-transport.test.cjs +0 -31
  302. package/dist/tests/websocket-transport.test.d.ts +0 -1
  303. package/dist/tests/websocket-transport.test.js +0 -25
  304. package/dist/tests/yahooCandles.test.cjs +0 -111
  305. package/dist/tests/yahooCandles.test.d.ts +0 -1
  306. package/dist/tests/yahooCandles.test.js +0 -105
  307. package/dist/tools/finance/optionsAnalytics.test.cjs +0 -128
  308. package/dist/tools/finance/optionsAnalytics.test.d.ts +0 -1
  309. package/dist/tools/finance/optionsAnalytics.test.js +0 -122
  310. package/dist/webui/assets/index-BMf95nv5.js +0 -215
  311. package/dist/webui/assets/index-DhJQ8Mbn.css +0 -11
@@ -0,0 +1,741 @@
1
+ import * as z from "zod";
2
+ import { type BrowserControlDependencies, type BrowserControlToolOptions } from "./browser_runtime.js";
3
+ import type { BrowserSessionManager } from "./browser_session_manager.js";
4
+ export interface BrowserSessionToolOptions extends BrowserControlToolOptions {
5
+ ownerId: string;
6
+ sessionManager: BrowserSessionManager;
7
+ }
8
+ export declare const createBrowserSessionStartTool: (options: BrowserSessionToolOptions, dependencies?: Partial<BrowserControlDependencies>) => import("langchain").DynamicStructuredTool<z.ZodObject<{
9
+ url: z.ZodOptional<z.ZodString>;
10
+ actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
11
+ type: z.ZodLiteral<"navigate">;
12
+ url: z.ZodString;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ type: z.ZodLiteral<"url">;
15
+ url: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ type: z.ZodLiteral<"open">;
18
+ url: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ type: z.ZodLiteral<"goto">;
21
+ url: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ type: z.ZodLiteral<"click">;
24
+ selector: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodLiteral<"type">;
27
+ selector: z.ZodString;
28
+ text: z.ZodString;
29
+ submit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ type: z.ZodLiteral<"press">;
32
+ key: z.ZodString;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ type: z.ZodLiteral<"wait">;
35
+ ms: z.ZodOptional<z.ZodNumber>;
36
+ selector: z.ZodOptional<z.ZodString>;
37
+ url: z.ZodOptional<z.ZodString>;
38
+ load: z.ZodOptional<z.ZodEnum<{
39
+ load: "load";
40
+ domcontentloaded: "domcontentloaded";
41
+ networkidle: "networkidle";
42
+ }>>;
43
+ fn: z.ZodOptional<z.ZodString>;
44
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ type: z.ZodLiteral<"ms">;
47
+ ms: z.ZodNumber;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ type: z.ZodLiteral<"sleep">;
50
+ ms: z.ZodNumber;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ type: z.ZodLiteral<"pause">;
53
+ ms: z.ZodNumber;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ selector: z.ZodOptional<z.ZodString>;
56
+ url: z.ZodOptional<z.ZodString>;
57
+ load: z.ZodOptional<z.ZodEnum<{
58
+ load: "load";
59
+ domcontentloaded: "domcontentloaded";
60
+ networkidle: "networkidle";
61
+ }>>;
62
+ fn: z.ZodOptional<z.ZodString>;
63
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
64
+ type: z.ZodLiteral<"wait_for">;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ selector: z.ZodOptional<z.ZodString>;
67
+ url: z.ZodOptional<z.ZodString>;
68
+ load: z.ZodOptional<z.ZodEnum<{
69
+ load: "load";
70
+ domcontentloaded: "domcontentloaded";
71
+ networkidle: "networkidle";
72
+ }>>;
73
+ fn: z.ZodOptional<z.ZodString>;
74
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
75
+ type: z.ZodLiteral<"wait_until">;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ type: z.ZodLiteral<"extract_text">;
78
+ selector: z.ZodOptional<z.ZodString>;
79
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<"selector">;
82
+ selector: z.ZodString;
83
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ type: z.ZodLiteral<"extract">;
86
+ selector: z.ZodOptional<z.ZodString>;
87
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ type: z.ZodLiteral<"getContent">;
90
+ selector: z.ZodOptional<z.ZodString>;
91
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<"get_content">;
94
+ selector: z.ZodOptional<z.ZodString>;
95
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ type: z.ZodLiteral<"querySelector">;
98
+ selector: z.ZodOptional<z.ZodString>;
99
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ type: z.ZodLiteral<"query_selector">;
102
+ selector: z.ZodOptional<z.ZodString>;
103
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ type: z.ZodLiteral<"screenshot">;
106
+ path: z.ZodOptional<z.ZodString>;
107
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ type: z.ZodLiteral<"path">;
110
+ path: z.ZodString;
111
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ type: z.ZodLiteral<"snapshot">;
114
+ path: z.ZodString;
115
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
116
+ }, z.core.$strip>, z.ZodObject<{
117
+ type: z.ZodLiteral<"capture">;
118
+ path: z.ZodString;
119
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
120
+ }, z.core.$strip>, z.ZodObject<{
121
+ type: z.ZodLiteral<"evaluate">;
122
+ expression: z.ZodString;
123
+ }, z.core.$strip>, z.ZodObject<{
124
+ type: z.ZodLiteral<"expression">;
125
+ expression: z.ZodString;
126
+ }, z.core.$strip>, z.ZodObject<{
127
+ type: z.ZodLiteral<"js">;
128
+ expression: z.ZodString;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ type: z.ZodLiteral<"script">;
131
+ expression: z.ZodString;
132
+ }, z.core.$strip>], "type">>>>;
133
+ headless: z.ZodOptional<z.ZodBoolean>;
134
+ timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
135
+ executablePath: z.ZodOptional<z.ZodString>;
136
+ transport: z.ZodOptional<z.ZodEnum<{
137
+ auto: "auto";
138
+ playwright: "playwright";
139
+ relay: "relay";
140
+ }>>;
141
+ }, z.core.$strip>, {
142
+ actions: ({
143
+ type: "wait";
144
+ ms?: number | undefined;
145
+ selector?: string | undefined;
146
+ url?: string | undefined;
147
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
148
+ fn?: string | undefined;
149
+ timeoutMs?: number | undefined;
150
+ } | {
151
+ type: "wait_for";
152
+ selector?: string | undefined;
153
+ url?: string | undefined;
154
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
155
+ fn?: string | undefined;
156
+ timeoutMs?: number | undefined;
157
+ } | {
158
+ type: "wait_until";
159
+ selector?: string | undefined;
160
+ url?: string | undefined;
161
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
162
+ fn?: string | undefined;
163
+ timeoutMs?: number | undefined;
164
+ } | {
165
+ type: "navigate";
166
+ url: string;
167
+ } | {
168
+ type: "url";
169
+ url: string;
170
+ } | {
171
+ type: "open";
172
+ url: string;
173
+ } | {
174
+ type: "goto";
175
+ url: string;
176
+ } | {
177
+ type: "click";
178
+ selector: string;
179
+ } | {
180
+ type: "type";
181
+ selector: string;
182
+ text: string;
183
+ submit: boolean;
184
+ } | {
185
+ type: "press";
186
+ key: string;
187
+ } | {
188
+ type: "ms";
189
+ ms: number;
190
+ } | {
191
+ type: "sleep";
192
+ ms: number;
193
+ } | {
194
+ type: "pause";
195
+ ms: number;
196
+ } | {
197
+ type: "extract_text";
198
+ maxChars: number;
199
+ selector?: string | undefined;
200
+ } | {
201
+ type: "selector";
202
+ selector: string;
203
+ maxChars: number;
204
+ } | {
205
+ type: "extract";
206
+ maxChars: number;
207
+ selector?: string | undefined;
208
+ } | {
209
+ type: "getContent";
210
+ maxChars: number;
211
+ selector?: string | undefined;
212
+ } | {
213
+ type: "get_content";
214
+ maxChars: number;
215
+ selector?: string | undefined;
216
+ } | {
217
+ type: "querySelector";
218
+ maxChars: number;
219
+ selector?: string | undefined;
220
+ } | {
221
+ type: "query_selector";
222
+ maxChars: number;
223
+ selector?: string | undefined;
224
+ } | {
225
+ type: "screenshot";
226
+ fullPage: boolean;
227
+ path?: string | undefined;
228
+ } | {
229
+ type: "path";
230
+ path: string;
231
+ fullPage: boolean;
232
+ } | {
233
+ type: "snapshot";
234
+ path: string;
235
+ fullPage: boolean;
236
+ } | {
237
+ type: "capture";
238
+ path: string;
239
+ fullPage: boolean;
240
+ } | {
241
+ type: "evaluate";
242
+ expression: string;
243
+ } | {
244
+ type: "expression";
245
+ expression: string;
246
+ } | {
247
+ type: "js";
248
+ expression: string;
249
+ } | {
250
+ type: "script";
251
+ expression: string;
252
+ })[];
253
+ timeoutMs: number;
254
+ url?: string | undefined;
255
+ headless?: boolean | undefined;
256
+ executablePath?: string | undefined;
257
+ transport?: "auto" | "playwright" | "relay" | undefined;
258
+ }, {
259
+ url?: string | undefined;
260
+ actions?: ({
261
+ type: "wait";
262
+ ms?: number | undefined;
263
+ selector?: string | undefined;
264
+ url?: string | undefined;
265
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
266
+ fn?: string | undefined;
267
+ timeoutMs?: number | undefined;
268
+ } | {
269
+ type: "wait_for";
270
+ selector?: string | undefined;
271
+ url?: string | undefined;
272
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
273
+ fn?: string | undefined;
274
+ timeoutMs?: number | undefined;
275
+ } | {
276
+ type: "wait_until";
277
+ selector?: string | undefined;
278
+ url?: string | undefined;
279
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
280
+ fn?: string | undefined;
281
+ timeoutMs?: number | undefined;
282
+ } | {
283
+ type: "navigate";
284
+ url: string;
285
+ } | {
286
+ type: "url";
287
+ url: string;
288
+ } | {
289
+ type: "open";
290
+ url: string;
291
+ } | {
292
+ type: "goto";
293
+ url: string;
294
+ } | {
295
+ type: "click";
296
+ selector: string;
297
+ } | {
298
+ type: "type";
299
+ selector: string;
300
+ text: string;
301
+ submit?: boolean | undefined;
302
+ } | {
303
+ type: "press";
304
+ key: string;
305
+ } | {
306
+ type: "ms";
307
+ ms: number;
308
+ } | {
309
+ type: "sleep";
310
+ ms: number;
311
+ } | {
312
+ type: "pause";
313
+ ms: number;
314
+ } | {
315
+ type: "extract_text";
316
+ selector?: string | undefined;
317
+ maxChars?: number | undefined;
318
+ } | {
319
+ type: "selector";
320
+ selector: string;
321
+ maxChars?: number | undefined;
322
+ } | {
323
+ type: "extract";
324
+ selector?: string | undefined;
325
+ maxChars?: number | undefined;
326
+ } | {
327
+ type: "getContent";
328
+ selector?: string | undefined;
329
+ maxChars?: number | undefined;
330
+ } | {
331
+ type: "get_content";
332
+ selector?: string | undefined;
333
+ maxChars?: number | undefined;
334
+ } | {
335
+ type: "querySelector";
336
+ selector?: string | undefined;
337
+ maxChars?: number | undefined;
338
+ } | {
339
+ type: "query_selector";
340
+ selector?: string | undefined;
341
+ maxChars?: number | undefined;
342
+ } | {
343
+ type: "screenshot";
344
+ path?: string | undefined;
345
+ fullPage?: boolean | undefined;
346
+ } | {
347
+ type: "path";
348
+ path: string;
349
+ fullPage?: boolean | undefined;
350
+ } | {
351
+ type: "snapshot";
352
+ path: string;
353
+ fullPage?: boolean | undefined;
354
+ } | {
355
+ type: "capture";
356
+ path: string;
357
+ fullPage?: boolean | undefined;
358
+ } | {
359
+ type: "evaluate";
360
+ expression: string;
361
+ } | {
362
+ type: "expression";
363
+ expression: string;
364
+ } | {
365
+ type: "js";
366
+ expression: string;
367
+ } | {
368
+ type: "script";
369
+ expression: string;
370
+ })[] | undefined;
371
+ headless?: boolean | undefined;
372
+ timeoutMs?: number | undefined;
373
+ executablePath?: string | undefined;
374
+ transport?: "auto" | "playwright" | "relay" | undefined;
375
+ }, Record<string, unknown>, "browser_session_start">;
376
+ export declare const createBrowserSessionActionTool: (options: BrowserSessionToolOptions) => import("langchain").DynamicStructuredTool<z.ZodObject<{
377
+ session_id: z.ZodString;
378
+ url: z.ZodOptional<z.ZodString>;
379
+ actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
380
+ type: z.ZodLiteral<"navigate">;
381
+ url: z.ZodString;
382
+ }, z.core.$strip>, z.ZodObject<{
383
+ type: z.ZodLiteral<"url">;
384
+ url: z.ZodString;
385
+ }, z.core.$strip>, z.ZodObject<{
386
+ type: z.ZodLiteral<"open">;
387
+ url: z.ZodString;
388
+ }, z.core.$strip>, z.ZodObject<{
389
+ type: z.ZodLiteral<"goto">;
390
+ url: z.ZodString;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ type: z.ZodLiteral<"click">;
393
+ selector: z.ZodString;
394
+ }, z.core.$strip>, z.ZodObject<{
395
+ type: z.ZodLiteral<"type">;
396
+ selector: z.ZodString;
397
+ text: z.ZodString;
398
+ submit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ type: z.ZodLiteral<"press">;
401
+ key: z.ZodString;
402
+ }, z.core.$strip>, z.ZodObject<{
403
+ type: z.ZodLiteral<"wait">;
404
+ ms: z.ZodOptional<z.ZodNumber>;
405
+ selector: z.ZodOptional<z.ZodString>;
406
+ url: z.ZodOptional<z.ZodString>;
407
+ load: z.ZodOptional<z.ZodEnum<{
408
+ load: "load";
409
+ domcontentloaded: "domcontentloaded";
410
+ networkidle: "networkidle";
411
+ }>>;
412
+ fn: z.ZodOptional<z.ZodString>;
413
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ type: z.ZodLiteral<"ms">;
416
+ ms: z.ZodNumber;
417
+ }, z.core.$strip>, z.ZodObject<{
418
+ type: z.ZodLiteral<"sleep">;
419
+ ms: z.ZodNumber;
420
+ }, z.core.$strip>, z.ZodObject<{
421
+ type: z.ZodLiteral<"pause">;
422
+ ms: z.ZodNumber;
423
+ }, z.core.$strip>, z.ZodObject<{
424
+ selector: z.ZodOptional<z.ZodString>;
425
+ url: z.ZodOptional<z.ZodString>;
426
+ load: z.ZodOptional<z.ZodEnum<{
427
+ load: "load";
428
+ domcontentloaded: "domcontentloaded";
429
+ networkidle: "networkidle";
430
+ }>>;
431
+ fn: z.ZodOptional<z.ZodString>;
432
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
433
+ type: z.ZodLiteral<"wait_for">;
434
+ }, z.core.$strip>, z.ZodObject<{
435
+ selector: z.ZodOptional<z.ZodString>;
436
+ url: z.ZodOptional<z.ZodString>;
437
+ load: z.ZodOptional<z.ZodEnum<{
438
+ load: "load";
439
+ domcontentloaded: "domcontentloaded";
440
+ networkidle: "networkidle";
441
+ }>>;
442
+ fn: z.ZodOptional<z.ZodString>;
443
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
444
+ type: z.ZodLiteral<"wait_until">;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ type: z.ZodLiteral<"extract_text">;
447
+ selector: z.ZodOptional<z.ZodString>;
448
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ type: z.ZodLiteral<"selector">;
451
+ selector: z.ZodString;
452
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
453
+ }, z.core.$strip>, z.ZodObject<{
454
+ type: z.ZodLiteral<"extract">;
455
+ selector: z.ZodOptional<z.ZodString>;
456
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ type: z.ZodLiteral<"getContent">;
459
+ selector: z.ZodOptional<z.ZodString>;
460
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
461
+ }, z.core.$strip>, z.ZodObject<{
462
+ type: z.ZodLiteral<"get_content">;
463
+ selector: z.ZodOptional<z.ZodString>;
464
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ type: z.ZodLiteral<"querySelector">;
467
+ selector: z.ZodOptional<z.ZodString>;
468
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
469
+ }, z.core.$strip>, z.ZodObject<{
470
+ type: z.ZodLiteral<"query_selector">;
471
+ selector: z.ZodOptional<z.ZodString>;
472
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ type: z.ZodLiteral<"screenshot">;
475
+ path: z.ZodOptional<z.ZodString>;
476
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ type: z.ZodLiteral<"path">;
479
+ path: z.ZodString;
480
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
481
+ }, z.core.$strip>, z.ZodObject<{
482
+ type: z.ZodLiteral<"snapshot">;
483
+ path: z.ZodString;
484
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
485
+ }, z.core.$strip>, z.ZodObject<{
486
+ type: z.ZodLiteral<"capture">;
487
+ path: z.ZodString;
488
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
489
+ }, z.core.$strip>, z.ZodObject<{
490
+ type: z.ZodLiteral<"evaluate">;
491
+ expression: z.ZodString;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ type: z.ZodLiteral<"expression">;
494
+ expression: z.ZodString;
495
+ }, z.core.$strip>, z.ZodObject<{
496
+ type: z.ZodLiteral<"js">;
497
+ expression: z.ZodString;
498
+ }, z.core.$strip>, z.ZodObject<{
499
+ type: z.ZodLiteral<"script">;
500
+ expression: z.ZodString;
501
+ }, z.core.$strip>], "type">>>>;
502
+ timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
503
+ }, z.core.$strip>, {
504
+ session_id: string;
505
+ actions: ({
506
+ type: "wait";
507
+ ms?: number | undefined;
508
+ selector?: string | undefined;
509
+ url?: string | undefined;
510
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
511
+ fn?: string | undefined;
512
+ timeoutMs?: number | undefined;
513
+ } | {
514
+ type: "wait_for";
515
+ selector?: string | undefined;
516
+ url?: string | undefined;
517
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
518
+ fn?: string | undefined;
519
+ timeoutMs?: number | undefined;
520
+ } | {
521
+ type: "wait_until";
522
+ selector?: string | undefined;
523
+ url?: string | undefined;
524
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
525
+ fn?: string | undefined;
526
+ timeoutMs?: number | undefined;
527
+ } | {
528
+ type: "navigate";
529
+ url: string;
530
+ } | {
531
+ type: "url";
532
+ url: string;
533
+ } | {
534
+ type: "open";
535
+ url: string;
536
+ } | {
537
+ type: "goto";
538
+ url: string;
539
+ } | {
540
+ type: "click";
541
+ selector: string;
542
+ } | {
543
+ type: "type";
544
+ selector: string;
545
+ text: string;
546
+ submit: boolean;
547
+ } | {
548
+ type: "press";
549
+ key: string;
550
+ } | {
551
+ type: "ms";
552
+ ms: number;
553
+ } | {
554
+ type: "sleep";
555
+ ms: number;
556
+ } | {
557
+ type: "pause";
558
+ ms: number;
559
+ } | {
560
+ type: "extract_text";
561
+ maxChars: number;
562
+ selector?: string | undefined;
563
+ } | {
564
+ type: "selector";
565
+ selector: string;
566
+ maxChars: number;
567
+ } | {
568
+ type: "extract";
569
+ maxChars: number;
570
+ selector?: string | undefined;
571
+ } | {
572
+ type: "getContent";
573
+ maxChars: number;
574
+ selector?: string | undefined;
575
+ } | {
576
+ type: "get_content";
577
+ maxChars: number;
578
+ selector?: string | undefined;
579
+ } | {
580
+ type: "querySelector";
581
+ maxChars: number;
582
+ selector?: string | undefined;
583
+ } | {
584
+ type: "query_selector";
585
+ maxChars: number;
586
+ selector?: string | undefined;
587
+ } | {
588
+ type: "screenshot";
589
+ fullPage: boolean;
590
+ path?: string | undefined;
591
+ } | {
592
+ type: "path";
593
+ path: string;
594
+ fullPage: boolean;
595
+ } | {
596
+ type: "snapshot";
597
+ path: string;
598
+ fullPage: boolean;
599
+ } | {
600
+ type: "capture";
601
+ path: string;
602
+ fullPage: boolean;
603
+ } | {
604
+ type: "evaluate";
605
+ expression: string;
606
+ } | {
607
+ type: "expression";
608
+ expression: string;
609
+ } | {
610
+ type: "js";
611
+ expression: string;
612
+ } | {
613
+ type: "script";
614
+ expression: string;
615
+ })[];
616
+ timeoutMs: number;
617
+ url?: string | undefined;
618
+ }, {
619
+ session_id: string;
620
+ url?: string | undefined;
621
+ actions?: ({
622
+ type: "wait";
623
+ ms?: number | undefined;
624
+ selector?: string | undefined;
625
+ url?: string | undefined;
626
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
627
+ fn?: string | undefined;
628
+ timeoutMs?: number | undefined;
629
+ } | {
630
+ type: "wait_for";
631
+ selector?: string | undefined;
632
+ url?: string | undefined;
633
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
634
+ fn?: string | undefined;
635
+ timeoutMs?: number | undefined;
636
+ } | {
637
+ type: "wait_until";
638
+ selector?: string | undefined;
639
+ url?: string | undefined;
640
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
641
+ fn?: string | undefined;
642
+ timeoutMs?: number | undefined;
643
+ } | {
644
+ type: "navigate";
645
+ url: string;
646
+ } | {
647
+ type: "url";
648
+ url: string;
649
+ } | {
650
+ type: "open";
651
+ url: string;
652
+ } | {
653
+ type: "goto";
654
+ url: string;
655
+ } | {
656
+ type: "click";
657
+ selector: string;
658
+ } | {
659
+ type: "type";
660
+ selector: string;
661
+ text: string;
662
+ submit?: boolean | undefined;
663
+ } | {
664
+ type: "press";
665
+ key: string;
666
+ } | {
667
+ type: "ms";
668
+ ms: number;
669
+ } | {
670
+ type: "sleep";
671
+ ms: number;
672
+ } | {
673
+ type: "pause";
674
+ ms: number;
675
+ } | {
676
+ type: "extract_text";
677
+ selector?: string | undefined;
678
+ maxChars?: number | undefined;
679
+ } | {
680
+ type: "selector";
681
+ selector: string;
682
+ maxChars?: number | undefined;
683
+ } | {
684
+ type: "extract";
685
+ selector?: string | undefined;
686
+ maxChars?: number | undefined;
687
+ } | {
688
+ type: "getContent";
689
+ selector?: string | undefined;
690
+ maxChars?: number | undefined;
691
+ } | {
692
+ type: "get_content";
693
+ selector?: string | undefined;
694
+ maxChars?: number | undefined;
695
+ } | {
696
+ type: "querySelector";
697
+ selector?: string | undefined;
698
+ maxChars?: number | undefined;
699
+ } | {
700
+ type: "query_selector";
701
+ selector?: string | undefined;
702
+ maxChars?: number | undefined;
703
+ } | {
704
+ type: "screenshot";
705
+ path?: string | undefined;
706
+ fullPage?: boolean | undefined;
707
+ } | {
708
+ type: "path";
709
+ path: string;
710
+ fullPage?: boolean | undefined;
711
+ } | {
712
+ type: "snapshot";
713
+ path: string;
714
+ fullPage?: boolean | undefined;
715
+ } | {
716
+ type: "capture";
717
+ path: string;
718
+ fullPage?: boolean | undefined;
719
+ } | {
720
+ type: "evaluate";
721
+ expression: string;
722
+ } | {
723
+ type: "expression";
724
+ expression: string;
725
+ } | {
726
+ type: "js";
727
+ expression: string;
728
+ } | {
729
+ type: "script";
730
+ expression: string;
731
+ })[] | undefined;
732
+ timeoutMs?: number | undefined;
733
+ }, Record<string, unknown>, "browser_session_action">;
734
+ export declare const createBrowserSessionCloseTool: (options: BrowserSessionToolOptions) => import("langchain").DynamicStructuredTool<z.ZodObject<{
735
+ session_id: z.ZodString;
736
+ }, z.core.$strip>, {
737
+ session_id: string;
738
+ }, {
739
+ session_id: string;
740
+ }, Record<string, unknown>, "browser_session_close">;
741
+ export declare const createBrowserSessionListTool: (options: BrowserSessionToolOptions) => import("langchain").DynamicStructuredTool<z.ZodObject<{}, z.core.$strip>, Record<string, never>, Record<string, never>, Record<string, unknown>, "browser_session_list">;