@onkernel/sdk 0.111.0 → 0.113.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/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +22 -1
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +22 -1
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +44 -3
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +44 -3
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +2 -2
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +2 -2
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js +2 -2
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +27 -18
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +27 -18
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/browsers/telemetry.js +3 -2
- package/resources/browsers/telemetry.js.map +1 -1
- package/resources/browsers/telemetry.mjs +3 -2
- package/resources/browsers/telemetry.mjs.map +1 -1
- package/resources/browsers/webmcp/custom-tools.d.mts +118 -0
- package/resources/browsers/webmcp/custom-tools.d.mts.map +1 -0
- package/resources/browsers/webmcp/custom-tools.d.ts +118 -0
- package/resources/browsers/webmcp/custom-tools.d.ts.map +1 -0
- package/resources/browsers/webmcp/custom-tools.js +75 -0
- package/resources/browsers/webmcp/custom-tools.js.map +1 -0
- package/resources/browsers/webmcp/custom-tools.mjs +71 -0
- package/resources/browsers/webmcp/custom-tools.mjs.map +1 -0
- package/resources/browsers/webmcp/index.d.mts +3 -0
- package/resources/browsers/webmcp/index.d.mts.map +1 -0
- package/resources/browsers/webmcp/index.d.ts +3 -0
- package/resources/browsers/webmcp/index.d.ts.map +1 -0
- package/resources/browsers/webmcp/index.js +9 -0
- package/resources/browsers/webmcp/index.js.map +1 -0
- package/resources/browsers/webmcp/index.mjs +4 -0
- package/resources/browsers/webmcp/index.mjs.map +1 -0
- package/resources/browsers/webmcp/webmcp.d.mts +211 -0
- package/resources/browsers/webmcp/webmcp.d.mts.map +1 -0
- package/resources/browsers/webmcp/webmcp.d.ts +211 -0
- package/resources/browsers/webmcp/webmcp.d.ts.map +1 -0
- package/resources/browsers/webmcp/webmcp.js +66 -0
- package/resources/browsers/webmcp/webmcp.js.map +1 -0
- package/resources/browsers/webmcp/webmcp.mjs +61 -0
- package/resources/browsers/webmcp/webmcp.mjs.map +1 -0
- package/resources/browsers/webmcp.d.mts +1 -157
- package/resources/browsers/webmcp.d.mts.map +1 -1
- package/resources/browsers/webmcp.d.ts +1 -157
- package/resources/browsers/webmcp.d.ts.map +1 -1
- package/resources/browsers/webmcp.js +2 -51
- package/resources/browsers/webmcp.js.map +1 -1
- package/resources/browsers/webmcp.mjs +1 -49
- package/resources/browsers/webmcp.mjs.map +1 -1
- package/resources/organization/entitlements.d.mts +15 -0
- package/resources/organization/entitlements.d.mts.map +1 -1
- package/resources/organization/entitlements.d.ts +15 -0
- package/resources/organization/entitlements.d.ts.map +1 -1
- package/resources/search/providers.d.mts +2 -1
- package/resources/search/providers.d.mts.map +1 -1
- package/resources/search/providers.d.ts +2 -1
- package/resources/search/providers.d.ts.map +1 -1
- package/src/resources/browser-pools.ts +26 -1
- package/src/resources/browsers/browsers.ts +65 -13
- package/src/resources/browsers/index.ts +4 -1
- package/src/resources/browsers/telemetry.ts +56 -17
- package/src/resources/browsers/webmcp/custom-tools.ts +160 -0
- package/src/resources/browsers/webmcp/index.ts +26 -0
- package/src/resources/browsers/webmcp/webmcp.ts +295 -0
- package/src/resources/browsers/webmcp.ts +1 -204
- package/src/resources/organization/entitlements.ts +17 -0
- package/src/resources/search/providers.ts +2 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as CustomToolsAPI from './custom-tools';
|
|
5
|
+
import {
|
|
6
|
+
AddRequest,
|
|
7
|
+
CustomToolAddParams,
|
|
8
|
+
CustomToolRemoveParams,
|
|
9
|
+
CustomTools,
|
|
10
|
+
CustomToolsResponse,
|
|
11
|
+
Definition,
|
|
12
|
+
Match,
|
|
13
|
+
} from './custom-tools';
|
|
14
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
15
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
16
|
+
import { path } from '../../../internal/utils/path';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Discover and invoke native page tools across the browser instance.
|
|
20
|
+
*/
|
|
21
|
+
export class Webmcp extends APIResource {
|
|
22
|
+
customTools: CustomToolsAPI.CustomTools = new CustomToolsAPI.CustomTools(this._client);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Invokes the exact live registration identified by tool_ref. Non-autosubmit
|
|
26
|
+
* declarative form tools return after their fields are populated with an
|
|
27
|
+
* awaiting_submission status. Other tools wait for a terminal result, including
|
|
28
|
+
* across navigation. Inspect a populated form, obtain any required confirmation,
|
|
29
|
+
* then submit through Playwright or computer interaction without invoking the tool
|
|
30
|
+
* again. If the tab or embedded frame disappears, or the request times out after
|
|
31
|
+
* invocation begins, the response reports outcome_unknown and the tool is not
|
|
32
|
+
* retried. CDP-backed custom tool outputs above 240 KiB return an error rather
|
|
33
|
+
* than a truncated result.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const invocationResult =
|
|
38
|
+
* await client.browsers.webmcp.invokeTool(
|
|
39
|
+
* 'htzv5orfit78e1m2biiifpbv',
|
|
40
|
+
* {
|
|
41
|
+
* input: { foo: 'bar' },
|
|
42
|
+
* tool_ref: 'x',
|
|
43
|
+
* },
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
invokeTool(
|
|
48
|
+
idOrName: string,
|
|
49
|
+
body: WebmcpInvokeToolParams,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): APIPromise<InvocationResult> {
|
|
52
|
+
return this._client.post(path`/browsers/${idOrName}/webmcp/invoke`, { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Returns a snapshot of native and custom WebMCP tools available across every open
|
|
57
|
+
* tab and embedded frame in the browser. Each tool includes an opaque tool_ref for
|
|
58
|
+
* invoking that exact live registration, nested tool metadata, and source
|
|
59
|
+
* information. Custom tools include their generated ID, namespace, and CDP
|
|
60
|
+
* target_id in source. Tools disappear when their document closes or navigates
|
|
61
|
+
* away. Use exclude_custom to return only page-provided tools.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const toolsResponse =
|
|
66
|
+
* await client.browsers.webmcp.listTools(
|
|
67
|
+
* 'htzv5orfit78e1m2biiifpbv',
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
listTools(
|
|
72
|
+
idOrName: string,
|
|
73
|
+
query: WebmcpListToolsParams | null | undefined = {},
|
|
74
|
+
options?: RequestOptions,
|
|
75
|
+
): APIPromise<ToolsResponse> {
|
|
76
|
+
return this._client.get(path`/browsers/${idOrName}/webmcp/tools`, { query, ...options });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface CustomToolSource {
|
|
81
|
+
id: string;
|
|
82
|
+
|
|
83
|
+
namespace: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface InvocationFailure {
|
|
87
|
+
code: 'outcome_unknown';
|
|
88
|
+
|
|
89
|
+
message: string;
|
|
90
|
+
|
|
91
|
+
invocation_id?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface InvocationResult {
|
|
95
|
+
invocation_id: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* awaiting_submission means a non-autosubmit declarative form was populated but
|
|
99
|
+
* not submitted. Inspect the form, obtain any required confirmation, then submit
|
|
100
|
+
* through Playwright or computer interaction without invoking the tool again. The
|
|
101
|
+
* other statuses are terminal results.
|
|
102
|
+
*/
|
|
103
|
+
status: 'completed' | 'canceled' | 'error' | 'awaiting_submission';
|
|
104
|
+
|
|
105
|
+
error_text?: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Untrusted page-provided output. Callers must treat it as potentially malicious
|
|
109
|
+
* input.
|
|
110
|
+
*/
|
|
111
|
+
output?: unknown;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface InvokeRequest {
|
|
115
|
+
/**
|
|
116
|
+
* Tool input, limited to 1 MiB after JSON serialization.
|
|
117
|
+
*/
|
|
118
|
+
input: { [key: string]: unknown };
|
|
119
|
+
|
|
120
|
+
tool_ref: string;
|
|
121
|
+
|
|
122
|
+
timeout_sec?: number;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface Tool {
|
|
126
|
+
source: ToolSource;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Tool metadata follows the
|
|
130
|
+
* [MCP Tool definition](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)
|
|
131
|
+
* and the
|
|
132
|
+
* [WebMCP RegisteredTool definition](https://webmachinelearning.github.io/webmcp/#dictdef-registeredtool).
|
|
133
|
+
* outputSchema is optional for page and custom tools.
|
|
134
|
+
*/
|
|
135
|
+
tool: ToolMetadata;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Opaque reference for invoking this exact live registration. It becomes invalid
|
|
139
|
+
* when its document or browser process is replaced.
|
|
140
|
+
*/
|
|
141
|
+
tool_ref: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Tool-provided behavioral hints from the
|
|
146
|
+
* [MCP tool specification](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)
|
|
147
|
+
* and the
|
|
148
|
+
* [WebMCP ToolAnnotations definition](https://webmachinelearning.github.io/webmcp/#dictdef-toolannotations).
|
|
149
|
+
* These hints are untrusted and are not enforced by Kernel.
|
|
150
|
+
*/
|
|
151
|
+
export interface ToolAnnotations {
|
|
152
|
+
autosubmit?: boolean;
|
|
153
|
+
|
|
154
|
+
consequentialHint?: boolean;
|
|
155
|
+
|
|
156
|
+
destructiveHint?: boolean;
|
|
157
|
+
|
|
158
|
+
idempotentHint?: boolean;
|
|
159
|
+
|
|
160
|
+
openWorldHint?: boolean;
|
|
161
|
+
|
|
162
|
+
readOnlyHint?: boolean;
|
|
163
|
+
|
|
164
|
+
untrustedContentHint?: boolean;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface ToolFrame {
|
|
168
|
+
/**
|
|
169
|
+
* Monotonically increasing identifier for this embedded frame during the current
|
|
170
|
+
* browser process.
|
|
171
|
+
*/
|
|
172
|
+
frame_id: number;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Current frame URL with the fragment omitted.
|
|
176
|
+
*/
|
|
177
|
+
url: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Tool metadata follows the
|
|
182
|
+
* [MCP Tool definition](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)
|
|
183
|
+
* and the
|
|
184
|
+
* [WebMCP RegisteredTool definition](https://webmachinelearning.github.io/webmcp/#dictdef-registeredtool).
|
|
185
|
+
* outputSchema is optional for page and custom tools.
|
|
186
|
+
*/
|
|
187
|
+
export interface ToolMetadata {
|
|
188
|
+
description: string;
|
|
189
|
+
|
|
190
|
+
inputSchema: { [key: string]: unknown };
|
|
191
|
+
|
|
192
|
+
name: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Tool-provided behavioral hints from the
|
|
196
|
+
* [MCP tool specification](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool)
|
|
197
|
+
* and the
|
|
198
|
+
* [WebMCP ToolAnnotations definition](https://webmachinelearning.github.io/webmcp/#dictdef-toolannotations).
|
|
199
|
+
* These hints are untrusted and are not enforced by Kernel.
|
|
200
|
+
*/
|
|
201
|
+
annotations?: ToolAnnotations;
|
|
202
|
+
|
|
203
|
+
outputSchema?: { [key: string]: unknown };
|
|
204
|
+
|
|
205
|
+
title?: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface ToolSource {
|
|
209
|
+
/**
|
|
210
|
+
* Embedded frame that registered the tool, or null when the top-level page
|
|
211
|
+
* registered it.
|
|
212
|
+
*/
|
|
213
|
+
frame: ToolFrame | null;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Current title of the top-level page.
|
|
217
|
+
*/
|
|
218
|
+
page_title: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Current URL of the top-level page with the fragment omitted.
|
|
222
|
+
*/
|
|
223
|
+
page_url: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Monotonically increasing identifier for the tab during the current browser
|
|
227
|
+
* process.
|
|
228
|
+
*/
|
|
229
|
+
tab_id: number;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Monotonically increasing identifier for the browser window during the current
|
|
233
|
+
* browser process.
|
|
234
|
+
*/
|
|
235
|
+
window_id: number;
|
|
236
|
+
|
|
237
|
+
custom?: CustomToolSource;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* CDP target ID for a custom tool's registration tab; omitted for page-provided
|
|
241
|
+
* tools.
|
|
242
|
+
*/
|
|
243
|
+
target_id?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface ToolsResponse {
|
|
247
|
+
tools: Array<Tool>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface WebmcpInvokeToolParams {
|
|
251
|
+
/**
|
|
252
|
+
* Tool input, limited to 1 MiB after JSON serialization.
|
|
253
|
+
*/
|
|
254
|
+
input: { [key: string]: unknown };
|
|
255
|
+
|
|
256
|
+
tool_ref: string;
|
|
257
|
+
|
|
258
|
+
timeout_sec?: number;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface WebmcpListToolsParams {
|
|
262
|
+
/**
|
|
263
|
+
* Exclude custom tools when true.
|
|
264
|
+
*/
|
|
265
|
+
exclude_custom?: boolean;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
Webmcp.CustomTools = CustomTools;
|
|
269
|
+
|
|
270
|
+
export declare namespace Webmcp {
|
|
271
|
+
export {
|
|
272
|
+
type CustomToolSource as CustomToolSource,
|
|
273
|
+
type InvocationFailure as InvocationFailure,
|
|
274
|
+
type InvocationResult as InvocationResult,
|
|
275
|
+
type InvokeRequest as InvokeRequest,
|
|
276
|
+
type Tool as Tool,
|
|
277
|
+
type ToolAnnotations as ToolAnnotations,
|
|
278
|
+
type ToolFrame as ToolFrame,
|
|
279
|
+
type ToolMetadata as ToolMetadata,
|
|
280
|
+
type ToolSource as ToolSource,
|
|
281
|
+
type ToolsResponse as ToolsResponse,
|
|
282
|
+
type WebmcpInvokeToolParams as WebmcpInvokeToolParams,
|
|
283
|
+
type WebmcpListToolsParams as WebmcpListToolsParams,
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export {
|
|
287
|
+
CustomTools as CustomTools,
|
|
288
|
+
type AddRequest as AddRequest,
|
|
289
|
+
type CustomToolsResponse as CustomToolsResponse,
|
|
290
|
+
type Definition as Definition,
|
|
291
|
+
type Match as Match,
|
|
292
|
+
type CustomToolAddParams as CustomToolAddParams,
|
|
293
|
+
type CustomToolRemoveParams as CustomToolRemoveParams,
|
|
294
|
+
};
|
|
295
|
+
}
|
|
@@ -1,206 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Discover and invoke native page tools across the browser instance.
|
|
10
|
-
*/
|
|
11
|
-
export class Webmcp extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Invokes the exact live registration identified by tool_ref. Non-autosubmit
|
|
14
|
-
* declarative form tools return after their fields are populated with an
|
|
15
|
-
* awaiting_submission status. Other tools wait for a terminal result, including
|
|
16
|
-
* across navigation. Inspect a populated form, obtain any required confirmation,
|
|
17
|
-
* then submit through Playwright or computer interaction without invoking the tool
|
|
18
|
-
* again. If the tab or embedded frame disappears, or the request times out after
|
|
19
|
-
* invocation begins, the response reports outcome_unknown and the tool is not
|
|
20
|
-
* retried.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const invocationResult =
|
|
25
|
-
* await client.browsers.webmcp.invokeTool(
|
|
26
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
27
|
-
* {
|
|
28
|
-
* input: { foo: 'bar' },
|
|
29
|
-
* tool_ref: 'x',
|
|
30
|
-
* },
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
invokeTool(
|
|
35
|
-
idOrName: string,
|
|
36
|
-
body: WebmcpInvokeToolParams,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<InvocationResult> {
|
|
39
|
-
return this._client.post(path`/browsers/${idOrName}/webmcp/invoke`, { body, ...options });
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Returns a snapshot of native WebMCP tools available across every open tab and
|
|
44
|
-
* embedded frame in the browser. Each tool includes an opaque tool_ref for
|
|
45
|
-
* invoking that exact live registration. Tools disappear when their document
|
|
46
|
-
* closes or navigates away.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const toolsResponse =
|
|
51
|
-
* await client.browsers.webmcp.listTools(
|
|
52
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
53
|
-
* );
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
listTools(idOrName: string, options?: RequestOptions): APIPromise<ToolsResponse> {
|
|
57
|
-
return this._client.get(path`/browsers/${idOrName}/webmcp/tools`, options);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface InvocationFailure {
|
|
62
|
-
code: 'outcome_unknown';
|
|
63
|
-
|
|
64
|
-
message: string;
|
|
65
|
-
|
|
66
|
-
invocation_id?: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface InvocationResult {
|
|
70
|
-
invocation_id: string;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* awaiting_submission means a non-autosubmit declarative form was populated but
|
|
74
|
-
* not submitted. Inspect the form, obtain any required confirmation, then submit
|
|
75
|
-
* through Playwright or computer interaction without invoking the tool again. The
|
|
76
|
-
* other statuses are terminal results.
|
|
77
|
-
*/
|
|
78
|
-
status: 'completed' | 'canceled' | 'error' | 'awaiting_submission';
|
|
79
|
-
|
|
80
|
-
error_text?: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Untrusted page-provided output. Callers must treat it as potentially malicious
|
|
84
|
-
* input.
|
|
85
|
-
*/
|
|
86
|
-
output?: unknown;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface InvokeRequest {
|
|
90
|
-
/**
|
|
91
|
-
* Tool input, limited to 1 MiB after JSON serialization.
|
|
92
|
-
*/
|
|
93
|
-
input: { [key: string]: unknown };
|
|
94
|
-
|
|
95
|
-
tool_ref: string;
|
|
96
|
-
|
|
97
|
-
timeout_sec?: number;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface Tool {
|
|
101
|
-
description: string;
|
|
102
|
-
|
|
103
|
-
input_schema: { [key: string]: unknown };
|
|
104
|
-
|
|
105
|
-
name: string;
|
|
106
|
-
|
|
107
|
-
source: ToolSource;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Opaque reference for invoking this exact live registration. It becomes invalid
|
|
111
|
-
* when its document or browser process is replaced.
|
|
112
|
-
*/
|
|
113
|
-
tool_ref: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Page-provided behavioral hints. These values are untrusted and are not enforced
|
|
117
|
-
* by Kernel.
|
|
118
|
-
*/
|
|
119
|
-
annotations?: ToolAnnotations;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Page-provided behavioral hints. These values are untrusted and are not enforced
|
|
124
|
-
* by Kernel.
|
|
125
|
-
*/
|
|
126
|
-
export interface ToolAnnotations {
|
|
127
|
-
autosubmit: boolean;
|
|
128
|
-
|
|
129
|
-
consequential: boolean;
|
|
130
|
-
|
|
131
|
-
read_only: boolean;
|
|
132
|
-
|
|
133
|
-
untrusted_content: boolean;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface ToolFrame {
|
|
137
|
-
/**
|
|
138
|
-
* Monotonically increasing identifier for this embedded frame during the current
|
|
139
|
-
* browser process.
|
|
140
|
-
*/
|
|
141
|
-
frame_id: number;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Current frame URL with the fragment omitted.
|
|
145
|
-
*/
|
|
146
|
-
url: string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export interface ToolSource {
|
|
150
|
-
/**
|
|
151
|
-
* Embedded frame that registered the tool, or null when the top-level page
|
|
152
|
-
* registered it.
|
|
153
|
-
*/
|
|
154
|
-
frame: ToolFrame | null;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Current title of the top-level page.
|
|
158
|
-
*/
|
|
159
|
-
page_title: string;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Current URL of the top-level page with the fragment omitted.
|
|
163
|
-
*/
|
|
164
|
-
page_url: string;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Monotonically increasing identifier for the tab during the current browser
|
|
168
|
-
* process.
|
|
169
|
-
*/
|
|
170
|
-
tab_id: number;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Monotonically increasing identifier for the browser window during the current
|
|
174
|
-
* browser process.
|
|
175
|
-
*/
|
|
176
|
-
window_id: number;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface ToolsResponse {
|
|
180
|
-
tools: Array<Tool>;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface WebmcpInvokeToolParams {
|
|
184
|
-
/**
|
|
185
|
-
* Tool input, limited to 1 MiB after JSON serialization.
|
|
186
|
-
*/
|
|
187
|
-
input: { [key: string]: unknown };
|
|
188
|
-
|
|
189
|
-
tool_ref: string;
|
|
190
|
-
|
|
191
|
-
timeout_sec?: number;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export declare namespace Webmcp {
|
|
195
|
-
export {
|
|
196
|
-
type InvocationFailure as InvocationFailure,
|
|
197
|
-
type InvocationResult as InvocationResult,
|
|
198
|
-
type InvokeRequest as InvokeRequest,
|
|
199
|
-
type Tool as Tool,
|
|
200
|
-
type ToolAnnotations as ToolAnnotations,
|
|
201
|
-
type ToolFrame as ToolFrame,
|
|
202
|
-
type ToolSource as ToolSource,
|
|
203
|
-
type ToolsResponse as ToolsResponse,
|
|
204
|
-
type WebmcpInvokeToolParams as WebmcpInvokeToolParams,
|
|
205
|
-
};
|
|
206
|
-
}
|
|
3
|
+
export * from './webmcp/index';
|
|
@@ -58,6 +58,12 @@ export namespace OrgEntitlements {
|
|
|
58
58
|
|
|
59
59
|
proxy_bypass_hosts: Features.ProxyBypassHosts;
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Whether the Search API is enabled for the organization by its rollout feature
|
|
63
|
+
* flag.
|
|
64
|
+
*/
|
|
65
|
+
search: Features.Search;
|
|
66
|
+
|
|
61
67
|
/**
|
|
62
68
|
* Whether the organization can access vaults, using the same access check as vault
|
|
63
69
|
* API routes.
|
|
@@ -183,6 +189,17 @@ export namespace OrgEntitlements {
|
|
|
183
189
|
enabled: boolean;
|
|
184
190
|
}
|
|
185
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Whether the Search API is enabled for the organization by its rollout feature
|
|
194
|
+
* flag.
|
|
195
|
+
*/
|
|
196
|
+
export interface Search {
|
|
197
|
+
/**
|
|
198
|
+
* Whether the organization is entitled to use this feature.
|
|
199
|
+
*/
|
|
200
|
+
enabled: boolean;
|
|
201
|
+
}
|
|
202
|
+
|
|
186
203
|
/**
|
|
187
204
|
* Whether the organization can access vaults, using the same access check as vault
|
|
188
205
|
* API routes.
|
|
@@ -173,7 +173,8 @@ export type ProviderListResponse = Array<Provider>;
|
|
|
173
173
|
|
|
174
174
|
export interface ProviderListParams {
|
|
175
175
|
/**
|
|
176
|
-
* Optional concrete provider slug filter. Omit to list every provider.
|
|
176
|
+
* Optional concrete provider slug filter. Omit to list every provider. A slug that
|
|
177
|
+
* is not listed returns an empty array.
|
|
177
178
|
*/
|
|
178
179
|
slug?:
|
|
179
180
|
| 'brave'
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.113.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.113.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.113.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.113.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|