cdp-toolkit 1.11.0 → 2.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/CHANGELOG.md +71 -0
- package/README.md +76 -7
- package/dist/cli.js +331 -299
- package/dist/index.js +11 -11
- package/dist/mcp.js +1002 -336
- package/package.json +3 -2
- package/src/bidi/driver.ts +29 -1
- package/src/bidi/launch.ts +51 -1
- package/src/manifest.ts +297 -297
- package/src/mcp.ts +187 -55
- package/src/toolDocs.ts +468 -0
- package/src/toolGroups.ts +81 -0
- package/src/tools/navigation.ts +4 -2
- package/src/version.ts +9 -0
package/dist/cli.js
CHANGED
|
@@ -6020,6 +6020,9 @@ function mapBidiError(e) {
|
|
|
6020
6020
|
return driverError2("timeout", e.message);
|
|
6021
6021
|
if (!code && /(disposed|not open|connection closed)/i.test(e.message))
|
|
6022
6022
|
return driverError2("disconnected", e.message);
|
|
6023
|
+
if (/NS_ERROR_FILE_ACCESS_DENIED/i.test(e.message)) {
|
|
6024
|
+
return driverError2("page-error", `${e.message} — the browser process was not allowed to open this file:// path. For a snap- or AppArmor-confined Firefox (Ubuntu default) that is kernel-level and no preference fixes it: serve the directory over a local http server (e.g. python3 -m http.server) and navigate to the http://127.0.0.1:<port>/ URL instead. If this Firefox was launched by cdp-toolkit and still fails, please report it at https://github.com/sblattj/cdp-toolkit/issues.`);
|
|
6025
|
+
}
|
|
6023
6026
|
return driverError2("page-error", e.message);
|
|
6024
6027
|
}
|
|
6025
6028
|
return driverError2("page-error", e instanceof Error ? e.message : String(e));
|
|
@@ -6416,7 +6419,10 @@ class BidiPageDriver {
|
|
|
6416
6419
|
const sendOpts = opts.timeoutMs !== undefined ? { timeoutMs: opts.timeoutMs } : {};
|
|
6417
6420
|
try {
|
|
6418
6421
|
if (reload) {
|
|
6419
|
-
|
|
6422
|
+
if (opts.ignoreCache === true) {
|
|
6423
|
+
throw driverError2("unsupported", "navigate: ignoreCache:true (hard reload) is not supported on the Firefox WebDriver-BiDi backend — Firefox rejects the ignoreCache argument outright. A plain reload (reload:true, no ignoreCache) works.");
|
|
6424
|
+
}
|
|
6425
|
+
const r2 = await this.conn.send("browsingContext.reload", { context: this.contextId, wait }, sendOpts);
|
|
6420
6426
|
return { url: r2.url, contextId: this.contextId, reloaded: true, waitedFor: waitUntil };
|
|
6421
6427
|
}
|
|
6422
6428
|
if (history) {
|
|
@@ -7101,7 +7107,7 @@ function createFirefoxDriverForEndpoint(wsUrl, opts) {
|
|
|
7101
7107
|
|
|
7102
7108
|
// src/bidi/launch.ts
|
|
7103
7109
|
import { spawn as spawn3 } from "node:child_process";
|
|
7104
|
-
import { existsSync, mkdtempSync, rmSync } from "node:fs";
|
|
7110
|
+
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
7105
7111
|
import { createConnection, createServer } from "node:net";
|
|
7106
7112
|
import { tmpdir } from "node:os";
|
|
7107
7113
|
import { join as join11 } from "node:path";
|
|
@@ -7178,11 +7184,37 @@ function waitForExit(proc, deadlineMs) {
|
|
|
7178
7184
|
});
|
|
7179
7185
|
});
|
|
7180
7186
|
}
|
|
7187
|
+
var LAUNCH_USER_JS_PREFS = {
|
|
7188
|
+
"remote.prefs.recommended": true,
|
|
7189
|
+
"security.fileuri.strict_origin_policy": false,
|
|
7190
|
+
"dom.file.createInChild": true
|
|
7191
|
+
};
|
|
7192
|
+
function writeLaunchUserJs(profilePath) {
|
|
7193
|
+
const target = join11(profilePath, "user.js");
|
|
7194
|
+
const existing = existsSync(target) ? readFileSync(target, "utf8") : "";
|
|
7195
|
+
const present = new Set;
|
|
7196
|
+
for (const line of existing.split(`
|
|
7197
|
+
`)) {
|
|
7198
|
+
const m = /^user_pref\("([^"]+)"\s*,/.exec(line.trim());
|
|
7199
|
+
if (m)
|
|
7200
|
+
present.add(m[1]);
|
|
7201
|
+
}
|
|
7202
|
+
const additions = Object.entries(LAUNCH_USER_JS_PREFS).filter(([k]) => !present.has(k)).map(([k, v]) => `user_pref("${k}", ${JSON.stringify(v)});`);
|
|
7203
|
+
const content = (existing.length > 0 ? existing.replace(/\n*$/, `
|
|
7204
|
+
`) : "") + additions.join(`
|
|
7205
|
+
`) + (additions.length > 0 ? `
|
|
7206
|
+
` : "");
|
|
7207
|
+
if (content !== existing)
|
|
7208
|
+
writeFileSync(target, content, "utf-8");
|
|
7209
|
+
return content;
|
|
7210
|
+
}
|
|
7181
7211
|
async function launchFirefox(opts = {}) {
|
|
7182
7212
|
const binary = resolveBinary();
|
|
7183
7213
|
const port = await pickPort(opts.port);
|
|
7184
7214
|
const isThrowaway = opts.profilePath === undefined;
|
|
7185
7215
|
const profilePath = opts.profilePath ?? mkdtempSync(join11(tmpdir(), "cdp-toolkit-ff-profile-"));
|
|
7216
|
+
if (isThrowaway)
|
|
7217
|
+
writeLaunchUserJs(profilePath);
|
|
7186
7218
|
const args = ["--profile", profilePath, "--remote-debugging-port", String(port), "--no-remote"];
|
|
7187
7219
|
if (opts.headless)
|
|
7188
7220
|
args.push("--headless");
|
|
@@ -7536,21 +7568,21 @@ var FIREFOX_TOOLS = {
|
|
|
7536
7568
|
var MANIFEST = [
|
|
7537
7569
|
{
|
|
7538
7570
|
name: "list_pages",
|
|
7539
|
-
description: "
|
|
7571
|
+
description: "List browser page targets; optionally include non-page targets and probe responsiveness.",
|
|
7540
7572
|
inputSchema: {
|
|
7541
7573
|
type: "object",
|
|
7542
7574
|
properties: {
|
|
7543
7575
|
lease: {
|
|
7544
7576
|
type: "string",
|
|
7545
|
-
description: "Lease token
|
|
7577
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7546
7578
|
},
|
|
7547
7579
|
all: {
|
|
7548
7580
|
type: "boolean",
|
|
7549
|
-
description: "Include non-page targets
|
|
7581
|
+
description: "Include non-page targets."
|
|
7550
7582
|
},
|
|
7551
7583
|
probe: {
|
|
7552
7584
|
type: "boolean",
|
|
7553
|
-
description: "
|
|
7585
|
+
description: "Probe renderer responsiveness."
|
|
7554
7586
|
}
|
|
7555
7587
|
},
|
|
7556
7588
|
required: [],
|
|
@@ -7559,29 +7591,29 @@ var MANIFEST = [
|
|
|
7559
7591
|
},
|
|
7560
7592
|
{
|
|
7561
7593
|
name: "new_page",
|
|
7562
|
-
description: "Open a
|
|
7594
|
+
description: "Open a browser tab, optionally claim it; navigation is not awaited.",
|
|
7563
7595
|
inputSchema: {
|
|
7564
7596
|
type: "object",
|
|
7565
7597
|
properties: {
|
|
7566
7598
|
lease: {
|
|
7567
7599
|
type: "string",
|
|
7568
|
-
description: "Lease token
|
|
7600
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7569
7601
|
},
|
|
7570
7602
|
url: {
|
|
7571
7603
|
type: "string",
|
|
7572
|
-
description: "URL
|
|
7604
|
+
description: "URL value."
|
|
7573
7605
|
},
|
|
7574
7606
|
claim: {
|
|
7575
7607
|
type: "boolean",
|
|
7576
|
-
description: "Claim the new tab
|
|
7608
|
+
description: "Claim the new tab."
|
|
7577
7609
|
},
|
|
7578
7610
|
label: {
|
|
7579
7611
|
type: "string",
|
|
7580
|
-
description: "Agent
|
|
7612
|
+
description: "Agent lease label."
|
|
7581
7613
|
},
|
|
7582
7614
|
ttlMs: {
|
|
7583
7615
|
type: "number",
|
|
7584
|
-
description: "
|
|
7616
|
+
description: "Lease TTL in milliseconds."
|
|
7585
7617
|
}
|
|
7586
7618
|
},
|
|
7587
7619
|
required: [],
|
|
@@ -7590,17 +7622,17 @@ var MANIFEST = [
|
|
|
7590
7622
|
},
|
|
7591
7623
|
{
|
|
7592
7624
|
name: "close_page",
|
|
7593
|
-
description: "Close a page target
|
|
7625
|
+
description: "Close a selected page; target must resolve explicitly.",
|
|
7594
7626
|
inputSchema: {
|
|
7595
7627
|
type: "object",
|
|
7596
7628
|
properties: {
|
|
7597
7629
|
lease: {
|
|
7598
7630
|
type: "string",
|
|
7599
|
-
description: "Lease token
|
|
7631
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7600
7632
|
},
|
|
7601
7633
|
target: {
|
|
7602
7634
|
type: "string",
|
|
7603
|
-
description: "Page selector
|
|
7635
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7604
7636
|
}
|
|
7605
7637
|
},
|
|
7606
7638
|
required: [
|
|
@@ -7611,17 +7643,17 @@ var MANIFEST = [
|
|
|
7611
7643
|
},
|
|
7612
7644
|
{
|
|
7613
7645
|
name: "select_page",
|
|
7614
|
-
description: "
|
|
7646
|
+
description: "Focus a selected page and persist it as active; target must resolve explicitly.",
|
|
7615
7647
|
inputSchema: {
|
|
7616
7648
|
type: "object",
|
|
7617
7649
|
properties: {
|
|
7618
7650
|
lease: {
|
|
7619
7651
|
type: "string",
|
|
7620
|
-
description: "Lease token
|
|
7652
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7621
7653
|
},
|
|
7622
7654
|
target: {
|
|
7623
7655
|
type: "string",
|
|
7624
|
-
description: "Page selector
|
|
7656
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7625
7657
|
}
|
|
7626
7658
|
},
|
|
7627
7659
|
required: [
|
|
@@ -7632,25 +7664,25 @@ var MANIFEST = [
|
|
|
7632
7664
|
},
|
|
7633
7665
|
{
|
|
7634
7666
|
name: "navigate_page",
|
|
7635
|
-
description: "Navigate
|
|
7667
|
+
description: "Navigate, reload, or traverse page history; choose exactly one operation.",
|
|
7636
7668
|
inputSchema: {
|
|
7637
7669
|
type: "object",
|
|
7638
7670
|
properties: {
|
|
7639
7671
|
lease: {
|
|
7640
7672
|
type: "string",
|
|
7641
|
-
description: "Lease token
|
|
7673
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7642
7674
|
},
|
|
7643
7675
|
target: {
|
|
7644
7676
|
type: "string",
|
|
7645
|
-
description: "Page selector
|
|
7677
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7646
7678
|
},
|
|
7647
7679
|
url: {
|
|
7648
7680
|
type: "string",
|
|
7649
|
-
description: "
|
|
7681
|
+
description: "URL value."
|
|
7650
7682
|
},
|
|
7651
7683
|
reload: {
|
|
7652
7684
|
type: "boolean",
|
|
7653
|
-
description: "Reload
|
|
7685
|
+
description: "Reload before capture."
|
|
7654
7686
|
},
|
|
7655
7687
|
history: {
|
|
7656
7688
|
type: "string",
|
|
@@ -7658,11 +7690,11 @@ var MANIFEST = [
|
|
|
7658
7690
|
"back",
|
|
7659
7691
|
"forward"
|
|
7660
7692
|
],
|
|
7661
|
-
description: "
|
|
7693
|
+
description: "History direction."
|
|
7662
7694
|
},
|
|
7663
7695
|
ignoreCache: {
|
|
7664
7696
|
type: "boolean",
|
|
7665
|
-
description: "
|
|
7697
|
+
description: "Bypass cache on reload."
|
|
7666
7698
|
},
|
|
7667
7699
|
waitUntil: {
|
|
7668
7700
|
type: "string",
|
|
@@ -7670,11 +7702,11 @@ var MANIFEST = [
|
|
|
7670
7702
|
"load",
|
|
7671
7703
|
"domcontentloaded"
|
|
7672
7704
|
],
|
|
7673
|
-
description: "
|
|
7705
|
+
description: "Load milestone."
|
|
7674
7706
|
},
|
|
7675
7707
|
timeoutMs: {
|
|
7676
7708
|
type: "number",
|
|
7677
|
-
description: "
|
|
7709
|
+
description: "Timeout in milliseconds."
|
|
7678
7710
|
}
|
|
7679
7711
|
},
|
|
7680
7712
|
additionalProperties: false
|
|
@@ -7682,29 +7714,29 @@ var MANIFEST = [
|
|
|
7682
7714
|
},
|
|
7683
7715
|
{
|
|
7684
7716
|
name: "wait_for",
|
|
7685
|
-
description: "
|
|
7717
|
+
description: "Wait for a text substring in document.body.innerText; timeout throws.",
|
|
7686
7718
|
inputSchema: {
|
|
7687
7719
|
type: "object",
|
|
7688
7720
|
properties: {
|
|
7689
7721
|
lease: {
|
|
7690
7722
|
type: "string",
|
|
7691
|
-
description: "Lease token
|
|
7723
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7692
7724
|
},
|
|
7693
7725
|
target: {
|
|
7694
7726
|
type: "string",
|
|
7695
|
-
description: "Page selector
|
|
7727
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7696
7728
|
},
|
|
7697
7729
|
text: {
|
|
7698
7730
|
type: "string",
|
|
7699
|
-
description: "
|
|
7731
|
+
description: "Text substring."
|
|
7700
7732
|
},
|
|
7701
7733
|
timeoutMs: {
|
|
7702
7734
|
type: "number",
|
|
7703
|
-
description: "
|
|
7735
|
+
description: "Timeout in milliseconds."
|
|
7704
7736
|
},
|
|
7705
7737
|
pollMs: {
|
|
7706
7738
|
type: "number",
|
|
7707
|
-
description: "
|
|
7739
|
+
description: "Polling interval in milliseconds."
|
|
7708
7740
|
}
|
|
7709
7741
|
},
|
|
7710
7742
|
required: [
|
|
@@ -7715,37 +7747,37 @@ var MANIFEST = [
|
|
|
7715
7747
|
},
|
|
7716
7748
|
{
|
|
7717
7749
|
name: "evaluate_script",
|
|
7718
|
-
description: "
|
|
7750
|
+
description: "Evaluate JavaScript in a page or Chrome worker; args require a function literal.",
|
|
7719
7751
|
inputSchema: {
|
|
7720
7752
|
type: "object",
|
|
7721
7753
|
properties: {
|
|
7722
7754
|
lease: {
|
|
7723
7755
|
type: "string",
|
|
7724
|
-
description: "Lease token
|
|
7756
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7725
7757
|
},
|
|
7726
7758
|
target: {
|
|
7727
7759
|
type: "string",
|
|
7728
|
-
description: "Page selector
|
|
7760
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7729
7761
|
},
|
|
7730
7762
|
wake: {
|
|
7731
7763
|
type: "boolean",
|
|
7732
|
-
description: "
|
|
7764
|
+
description: "Wake worker before capture."
|
|
7733
7765
|
},
|
|
7734
7766
|
expression: {
|
|
7735
7767
|
type: "string",
|
|
7736
|
-
description: "JavaScript
|
|
7768
|
+
description: "JavaScript expression or function."
|
|
7737
7769
|
},
|
|
7738
7770
|
awaitPromise: {
|
|
7739
7771
|
type: "boolean",
|
|
7740
|
-
description: "Await
|
|
7772
|
+
description: "Await Promise results."
|
|
7741
7773
|
},
|
|
7742
7774
|
args: {
|
|
7743
7775
|
type: "array",
|
|
7744
|
-
description: "Positional JSON
|
|
7776
|
+
description: "Positional JSON arguments."
|
|
7745
7777
|
},
|
|
7746
7778
|
savePath: {
|
|
7747
7779
|
type: "string",
|
|
7748
|
-
description: "
|
|
7780
|
+
description: "Output file path."
|
|
7749
7781
|
}
|
|
7750
7782
|
},
|
|
7751
7783
|
required: [
|
|
@@ -7756,29 +7788,29 @@ var MANIFEST = [
|
|
|
7756
7788
|
},
|
|
7757
7789
|
{
|
|
7758
7790
|
name: "list_cookies",
|
|
7759
|
-
description: "Read
|
|
7791
|
+
description: "Read cookies for a selected page, including httpOnly values; savePath keeps values out of the response.",
|
|
7760
7792
|
inputSchema: {
|
|
7761
7793
|
type: "object",
|
|
7762
7794
|
properties: {
|
|
7763
7795
|
lease: {
|
|
7764
7796
|
type: "string",
|
|
7765
|
-
description: "Lease token
|
|
7797
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7766
7798
|
},
|
|
7767
7799
|
target: {
|
|
7768
7800
|
type: "string",
|
|
7769
|
-
description: "Page selector
|
|
7801
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7770
7802
|
},
|
|
7771
7803
|
domain: {
|
|
7772
7804
|
type: "string",
|
|
7773
|
-
description: "
|
|
7805
|
+
description: "Cookie domain."
|
|
7774
7806
|
},
|
|
7775
7807
|
name: {
|
|
7776
7808
|
type: "string",
|
|
7777
|
-
description: "
|
|
7809
|
+
description: "Cookie name."
|
|
7778
7810
|
},
|
|
7779
7811
|
savePath: {
|
|
7780
7812
|
type: "string",
|
|
7781
|
-
description: "
|
|
7813
|
+
description: "Output file path."
|
|
7782
7814
|
}
|
|
7783
7815
|
},
|
|
7784
7816
|
required: [],
|
|
@@ -7787,49 +7819,49 @@ var MANIFEST = [
|
|
|
7787
7819
|
},
|
|
7788
7820
|
{
|
|
7789
7821
|
name: "set_cookie",
|
|
7790
|
-
description: "
|
|
7822
|
+
description: "Set one page cookie, including httpOnly or secure flags; provide url or domain.",
|
|
7791
7823
|
inputSchema: {
|
|
7792
7824
|
type: "object",
|
|
7793
7825
|
properties: {
|
|
7794
7826
|
lease: {
|
|
7795
7827
|
type: "string",
|
|
7796
|
-
description: "Lease token
|
|
7828
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7797
7829
|
},
|
|
7798
7830
|
target: {
|
|
7799
7831
|
type: "string",
|
|
7800
|
-
description: "Page selector
|
|
7832
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7801
7833
|
},
|
|
7802
7834
|
name: {
|
|
7803
7835
|
type: "string",
|
|
7804
|
-
description: "Cookie name.
|
|
7836
|
+
description: "Cookie name."
|
|
7805
7837
|
},
|
|
7806
7838
|
value: {
|
|
7807
7839
|
type: "string",
|
|
7808
|
-
description: "Cookie value.
|
|
7840
|
+
description: "Cookie value."
|
|
7809
7841
|
},
|
|
7810
7842
|
url: {
|
|
7811
7843
|
type: "string",
|
|
7812
|
-
description: "URL
|
|
7844
|
+
description: "URL value."
|
|
7813
7845
|
},
|
|
7814
7846
|
domain: {
|
|
7815
7847
|
type: "string",
|
|
7816
|
-
description: "Cookie domain
|
|
7848
|
+
description: "Cookie domain."
|
|
7817
7849
|
},
|
|
7818
7850
|
path: {
|
|
7819
7851
|
type: "string",
|
|
7820
|
-
description: "Cookie path
|
|
7852
|
+
description: "Cookie path."
|
|
7821
7853
|
},
|
|
7822
7854
|
expires: {
|
|
7823
7855
|
type: "number",
|
|
7824
|
-
description: "Expiry
|
|
7856
|
+
description: "Expiry Unix time in seconds."
|
|
7825
7857
|
},
|
|
7826
7858
|
httpOnly: {
|
|
7827
7859
|
type: "boolean",
|
|
7828
|
-
description: "Set
|
|
7860
|
+
description: "Set HttpOnly flag."
|
|
7829
7861
|
},
|
|
7830
7862
|
secure: {
|
|
7831
7863
|
type: "boolean",
|
|
7832
|
-
description: "Set
|
|
7864
|
+
description: "Set Secure flag."
|
|
7833
7865
|
},
|
|
7834
7866
|
sameSite: {
|
|
7835
7867
|
type: "string",
|
|
@@ -7839,7 +7871,7 @@ var MANIFEST = [
|
|
|
7839
7871
|
"none",
|
|
7840
7872
|
"default"
|
|
7841
7873
|
],
|
|
7842
|
-
description: "SameSite attribute
|
|
7874
|
+
description: "SameSite attribute."
|
|
7843
7875
|
}
|
|
7844
7876
|
},
|
|
7845
7877
|
required: [
|
|
@@ -7851,33 +7883,33 @@ var MANIFEST = [
|
|
|
7851
7883
|
},
|
|
7852
7884
|
{
|
|
7853
7885
|
name: "delete_cookies",
|
|
7854
|
-
description: "Delete
|
|
7886
|
+
description: "Delete a named page cookie; provide name and url or domain.",
|
|
7855
7887
|
inputSchema: {
|
|
7856
7888
|
type: "object",
|
|
7857
7889
|
properties: {
|
|
7858
7890
|
lease: {
|
|
7859
7891
|
type: "string",
|
|
7860
|
-
description: "Lease token
|
|
7892
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7861
7893
|
},
|
|
7862
7894
|
target: {
|
|
7863
7895
|
type: "string",
|
|
7864
|
-
description: "Page selector
|
|
7896
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7865
7897
|
},
|
|
7866
7898
|
name: {
|
|
7867
7899
|
type: "string",
|
|
7868
|
-
description: "
|
|
7900
|
+
description: "Cookie name."
|
|
7869
7901
|
},
|
|
7870
7902
|
url: {
|
|
7871
7903
|
type: "string",
|
|
7872
|
-
description: "
|
|
7904
|
+
description: "URL value."
|
|
7873
7905
|
},
|
|
7874
7906
|
domain: {
|
|
7875
7907
|
type: "string",
|
|
7876
|
-
description: "
|
|
7908
|
+
description: "Cookie domain."
|
|
7877
7909
|
},
|
|
7878
7910
|
path: {
|
|
7879
7911
|
type: "string",
|
|
7880
|
-
description: "
|
|
7912
|
+
description: "Cookie path."
|
|
7881
7913
|
}
|
|
7882
7914
|
},
|
|
7883
7915
|
required: [
|
|
@@ -7888,21 +7920,21 @@ var MANIFEST = [
|
|
|
7888
7920
|
},
|
|
7889
7921
|
{
|
|
7890
7922
|
name: "take_snapshot",
|
|
7891
|
-
description: "
|
|
7923
|
+
description: "Capture the page accessibility tree with interaction UIDs.",
|
|
7892
7924
|
inputSchema: {
|
|
7893
7925
|
type: "object",
|
|
7894
7926
|
properties: {
|
|
7895
7927
|
lease: {
|
|
7896
7928
|
type: "string",
|
|
7897
|
-
description: "Lease token
|
|
7929
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7898
7930
|
},
|
|
7899
7931
|
target: {
|
|
7900
7932
|
type: "string",
|
|
7901
|
-
description: "Page selector
|
|
7933
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7902
7934
|
},
|
|
7903
7935
|
interactiveOnly: {
|
|
7904
7936
|
type: "boolean",
|
|
7905
|
-
description: "
|
|
7937
|
+
description: "Only interactive nodes."
|
|
7906
7938
|
}
|
|
7907
7939
|
},
|
|
7908
7940
|
required: [],
|
|
@@ -7911,25 +7943,25 @@ var MANIFEST = [
|
|
|
7911
7943
|
},
|
|
7912
7944
|
{
|
|
7913
7945
|
name: "click",
|
|
7914
|
-
description: "Click an element
|
|
7946
|
+
description: "Click an element by UID or CSS selector; provide exactly one.",
|
|
7915
7947
|
inputSchema: {
|
|
7916
7948
|
type: "object",
|
|
7917
7949
|
properties: {
|
|
7918
7950
|
lease: {
|
|
7919
7951
|
type: "string",
|
|
7920
|
-
description: "Lease token
|
|
7952
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7921
7953
|
},
|
|
7922
7954
|
target: {
|
|
7923
7955
|
type: "string",
|
|
7924
|
-
description: "Page selector
|
|
7956
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7925
7957
|
},
|
|
7926
7958
|
uid: {
|
|
7927
7959
|
type: "number",
|
|
7928
|
-
description: "
|
|
7960
|
+
description: "Element backendDOMNodeId."
|
|
7929
7961
|
},
|
|
7930
7962
|
selector: {
|
|
7931
7963
|
type: "string",
|
|
7932
|
-
description: "CSS selector
|
|
7964
|
+
description: "CSS selector."
|
|
7933
7965
|
},
|
|
7934
7966
|
button: {
|
|
7935
7967
|
type: "string",
|
|
@@ -7938,11 +7970,11 @@ var MANIFEST = [
|
|
|
7938
7970
|
"right",
|
|
7939
7971
|
"middle"
|
|
7940
7972
|
],
|
|
7941
|
-
description: "Mouse button
|
|
7973
|
+
description: "Mouse button."
|
|
7942
7974
|
},
|
|
7943
7975
|
clickCount: {
|
|
7944
7976
|
type: "number",
|
|
7945
|
-
description: "
|
|
7977
|
+
description: "Click count."
|
|
7946
7978
|
},
|
|
7947
7979
|
modifiers: {
|
|
7948
7980
|
type: "array",
|
|
@@ -7955,7 +7987,7 @@ var MANIFEST = [
|
|
|
7955
7987
|
"Shift"
|
|
7956
7988
|
]
|
|
7957
7989
|
},
|
|
7958
|
-
description: "Modifier keys
|
|
7990
|
+
description: "Modifier keys: Control|Ctrl|Shift|Alt|Meta|Cmd."
|
|
7959
7991
|
}
|
|
7960
7992
|
},
|
|
7961
7993
|
required: [],
|
|
@@ -7964,25 +7996,25 @@ var MANIFEST = [
|
|
|
7964
7996
|
},
|
|
7965
7997
|
{
|
|
7966
7998
|
name: "hover",
|
|
7967
|
-
description: "
|
|
7999
|
+
description: "Hover an element by UID or CSS selector; provide exactly one.",
|
|
7968
8000
|
inputSchema: {
|
|
7969
8001
|
type: "object",
|
|
7970
8002
|
properties: {
|
|
7971
8003
|
lease: {
|
|
7972
8004
|
type: "string",
|
|
7973
|
-
description: "Lease token
|
|
8005
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
7974
8006
|
},
|
|
7975
8007
|
target: {
|
|
7976
8008
|
type: "string",
|
|
7977
|
-
description: "Page selector
|
|
8009
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
7978
8010
|
},
|
|
7979
8011
|
uid: {
|
|
7980
8012
|
type: "number",
|
|
7981
|
-
description: "
|
|
8013
|
+
description: "Element backendDOMNodeId."
|
|
7982
8014
|
},
|
|
7983
8015
|
selector: {
|
|
7984
8016
|
type: "string",
|
|
7985
|
-
description: "CSS selector
|
|
8017
|
+
description: "CSS selector."
|
|
7986
8018
|
}
|
|
7987
8019
|
},
|
|
7988
8020
|
required: [],
|
|
@@ -7991,67 +8023,67 @@ var MANIFEST = [
|
|
|
7991
8023
|
},
|
|
7992
8024
|
{
|
|
7993
8025
|
name: "drag",
|
|
7994
|
-
description: "
|
|
8026
|
+
description: "Drag from an element to a destination or offset; html5 mode is Chrome-only.",
|
|
7995
8027
|
inputSchema: {
|
|
7996
8028
|
type: "object",
|
|
7997
8029
|
properties: {
|
|
7998
8030
|
lease: {
|
|
7999
8031
|
type: "string",
|
|
8000
|
-
description: "Lease token
|
|
8032
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8001
8033
|
},
|
|
8002
8034
|
target: {
|
|
8003
8035
|
type: "string",
|
|
8004
|
-
description: "Page selector
|
|
8036
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8005
8037
|
},
|
|
8006
8038
|
from: {
|
|
8007
8039
|
type: "object",
|
|
8008
|
-
description: "
|
|
8040
|
+
description: "Drag source.",
|
|
8009
8041
|
properties: {
|
|
8010
8042
|
uid: {
|
|
8011
8043
|
type: "number",
|
|
8012
|
-
description: "
|
|
8044
|
+
description: "Element backendDOMNodeId."
|
|
8013
8045
|
},
|
|
8014
8046
|
selector: {
|
|
8015
8047
|
type: "string",
|
|
8016
|
-
description: "CSS selector
|
|
8048
|
+
description: "CSS selector."
|
|
8017
8049
|
}
|
|
8018
8050
|
},
|
|
8019
8051
|
additionalProperties: false
|
|
8020
8052
|
},
|
|
8021
8053
|
to: {
|
|
8022
8054
|
type: "object",
|
|
8023
|
-
description: "
|
|
8055
|
+
description: "Drag destination.",
|
|
8024
8056
|
properties: {
|
|
8025
8057
|
uid: {
|
|
8026
8058
|
type: "number",
|
|
8027
|
-
description: "
|
|
8059
|
+
description: "Element backendDOMNodeId."
|
|
8028
8060
|
},
|
|
8029
8061
|
selector: {
|
|
8030
8062
|
type: "string",
|
|
8031
|
-
description: "CSS selector
|
|
8063
|
+
description: "CSS selector."
|
|
8032
8064
|
},
|
|
8033
8065
|
x: {
|
|
8034
8066
|
type: "number",
|
|
8035
|
-
description: "
|
|
8067
|
+
description: "Viewport x-coordinate."
|
|
8036
8068
|
},
|
|
8037
8069
|
y: {
|
|
8038
8070
|
type: "number",
|
|
8039
|
-
description: "
|
|
8071
|
+
description: "Viewport y-coordinate."
|
|
8040
8072
|
}
|
|
8041
8073
|
},
|
|
8042
8074
|
additionalProperties: false
|
|
8043
8075
|
},
|
|
8044
8076
|
by: {
|
|
8045
8077
|
type: "object",
|
|
8046
|
-
description: "
|
|
8078
|
+
description: "Drag offset.",
|
|
8047
8079
|
properties: {
|
|
8048
8080
|
dx: {
|
|
8049
8081
|
type: "number",
|
|
8050
|
-
description: "Horizontal offset
|
|
8082
|
+
description: "Horizontal drag offset."
|
|
8051
8083
|
},
|
|
8052
8084
|
dy: {
|
|
8053
8085
|
type: "number",
|
|
8054
|
-
description: "Vertical offset
|
|
8086
|
+
description: "Vertical drag offset."
|
|
8055
8087
|
}
|
|
8056
8088
|
},
|
|
8057
8089
|
additionalProperties: false
|
|
@@ -8062,11 +8094,11 @@ var MANIFEST = [
|
|
|
8062
8094
|
"mouse",
|
|
8063
8095
|
"html5"
|
|
8064
8096
|
],
|
|
8065
|
-
description: "
|
|
8097
|
+
description: "Drag mode."
|
|
8066
8098
|
},
|
|
8067
8099
|
steps: {
|
|
8068
8100
|
type: "number",
|
|
8069
|
-
description: "
|
|
8101
|
+
description: "Interpolation steps."
|
|
8070
8102
|
}
|
|
8071
8103
|
},
|
|
8072
8104
|
required: [
|
|
@@ -8077,41 +8109,41 @@ var MANIFEST = [
|
|
|
8077
8109
|
},
|
|
8078
8110
|
{
|
|
8079
8111
|
name: "scroll",
|
|
8080
|
-
description: "
|
|
8112
|
+
description: "Dispatch a wheel event at an element or coordinate anchor; provide deltaX or deltaY.",
|
|
8081
8113
|
inputSchema: {
|
|
8082
8114
|
type: "object",
|
|
8083
8115
|
properties: {
|
|
8084
8116
|
lease: {
|
|
8085
8117
|
type: "string",
|
|
8086
|
-
description: "Lease token
|
|
8118
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8087
8119
|
},
|
|
8088
8120
|
target: {
|
|
8089
8121
|
type: "string",
|
|
8090
|
-
description: "Page selector
|
|
8122
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8091
8123
|
},
|
|
8092
8124
|
uid: {
|
|
8093
8125
|
type: "number",
|
|
8094
|
-
description: "
|
|
8126
|
+
description: "Element backendDOMNodeId."
|
|
8095
8127
|
},
|
|
8096
8128
|
selector: {
|
|
8097
8129
|
type: "string",
|
|
8098
|
-
description: "CSS selector
|
|
8130
|
+
description: "CSS selector."
|
|
8099
8131
|
},
|
|
8100
8132
|
x: {
|
|
8101
8133
|
type: "number",
|
|
8102
|
-
description: "
|
|
8134
|
+
description: "Viewport x-coordinate."
|
|
8103
8135
|
},
|
|
8104
8136
|
y: {
|
|
8105
8137
|
type: "number",
|
|
8106
|
-
description: "
|
|
8138
|
+
description: "Viewport y-coordinate."
|
|
8107
8139
|
},
|
|
8108
8140
|
deltaX: {
|
|
8109
8141
|
type: "number",
|
|
8110
|
-
description: "Horizontal scroll delta
|
|
8142
|
+
description: "Horizontal scroll delta."
|
|
8111
8143
|
},
|
|
8112
8144
|
deltaY: {
|
|
8113
8145
|
type: "number",
|
|
8114
|
-
description: "Vertical scroll delta
|
|
8146
|
+
description: "Vertical scroll delta."
|
|
8115
8147
|
}
|
|
8116
8148
|
},
|
|
8117
8149
|
required: [],
|
|
@@ -8120,17 +8152,17 @@ var MANIFEST = [
|
|
|
8120
8152
|
},
|
|
8121
8153
|
{
|
|
8122
8154
|
name: "dispatch_mouse",
|
|
8123
|
-
description: "
|
|
8155
|
+
description: "Dispatch one raw mouse event at viewport coordinates; Chrome-only.",
|
|
8124
8156
|
inputSchema: {
|
|
8125
8157
|
type: "object",
|
|
8126
8158
|
properties: {
|
|
8127
8159
|
lease: {
|
|
8128
8160
|
type: "string",
|
|
8129
|
-
description: "Lease token
|
|
8161
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8130
8162
|
},
|
|
8131
8163
|
target: {
|
|
8132
8164
|
type: "string",
|
|
8133
|
-
description: "Page selector
|
|
8165
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8134
8166
|
},
|
|
8135
8167
|
action: {
|
|
8136
8168
|
type: "string",
|
|
@@ -8139,15 +8171,15 @@ var MANIFEST = [
|
|
|
8139
8171
|
"down",
|
|
8140
8172
|
"up"
|
|
8141
8173
|
],
|
|
8142
|
-
description: "
|
|
8174
|
+
description: "Mouse action."
|
|
8143
8175
|
},
|
|
8144
8176
|
x: {
|
|
8145
8177
|
type: "number",
|
|
8146
|
-
description: "Viewport x-coordinate.
|
|
8178
|
+
description: "Viewport x-coordinate."
|
|
8147
8179
|
},
|
|
8148
8180
|
y: {
|
|
8149
8181
|
type: "number",
|
|
8150
|
-
description: "Viewport y-coordinate.
|
|
8182
|
+
description: "Viewport y-coordinate."
|
|
8151
8183
|
},
|
|
8152
8184
|
button: {
|
|
8153
8185
|
type: "string",
|
|
@@ -8156,11 +8188,11 @@ var MANIFEST = [
|
|
|
8156
8188
|
"right",
|
|
8157
8189
|
"middle"
|
|
8158
8190
|
],
|
|
8159
|
-
description: "Mouse button
|
|
8191
|
+
description: "Mouse button."
|
|
8160
8192
|
},
|
|
8161
8193
|
clickCount: {
|
|
8162
8194
|
type: "number",
|
|
8163
|
-
description: "Click
|
|
8195
|
+
description: "Click count."
|
|
8164
8196
|
},
|
|
8165
8197
|
modifiers: {
|
|
8166
8198
|
type: "array",
|
|
@@ -8173,7 +8205,7 @@ var MANIFEST = [
|
|
|
8173
8205
|
"Shift"
|
|
8174
8206
|
]
|
|
8175
8207
|
},
|
|
8176
|
-
description: "Modifier keys
|
|
8208
|
+
description: "Modifier keys: Control|Ctrl|Shift|Alt|Meta|Cmd."
|
|
8177
8209
|
}
|
|
8178
8210
|
},
|
|
8179
8211
|
required: [
|
|
@@ -8186,25 +8218,25 @@ var MANIFEST = [
|
|
|
8186
8218
|
},
|
|
8187
8219
|
{
|
|
8188
8220
|
name: "wait_for_download",
|
|
8189
|
-
description: "
|
|
8221
|
+
description: "Arm or collect a browser download; arm capture before triggering the download.",
|
|
8190
8222
|
inputSchema: {
|
|
8191
8223
|
type: "object",
|
|
8192
8224
|
properties: {
|
|
8193
8225
|
lease: {
|
|
8194
8226
|
type: "string",
|
|
8195
|
-
description: "Lease token
|
|
8227
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8196
8228
|
},
|
|
8197
8229
|
target: {
|
|
8198
8230
|
type: "string",
|
|
8199
|
-
description: "
|
|
8231
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8200
8232
|
},
|
|
8201
8233
|
arm: {
|
|
8202
8234
|
type: "boolean",
|
|
8203
|
-
description: "Arm download capture
|
|
8235
|
+
description: "Arm download capture."
|
|
8204
8236
|
},
|
|
8205
8237
|
timeoutMs: {
|
|
8206
8238
|
type: "number",
|
|
8207
|
-
description: "
|
|
8239
|
+
description: "Timeout in milliseconds."
|
|
8208
8240
|
}
|
|
8209
8241
|
},
|
|
8210
8242
|
required: [],
|
|
@@ -8213,32 +8245,32 @@ var MANIFEST = [
|
|
|
8213
8245
|
},
|
|
8214
8246
|
{
|
|
8215
8247
|
name: "grant_permissions",
|
|
8216
|
-
description: "Grant
|
|
8248
|
+
description: "Grant or reset browser permissions; permissions are origin-scoped and Chrome-only.",
|
|
8217
8249
|
inputSchema: {
|
|
8218
8250
|
type: "object",
|
|
8219
8251
|
properties: {
|
|
8220
8252
|
lease: {
|
|
8221
8253
|
type: "string",
|
|
8222
|
-
description: "Lease token
|
|
8254
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8223
8255
|
},
|
|
8224
8256
|
target: {
|
|
8225
8257
|
type: "string",
|
|
8226
|
-
description: "
|
|
8258
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8227
8259
|
},
|
|
8228
8260
|
permissions: {
|
|
8229
8261
|
type: "array",
|
|
8230
8262
|
items: {
|
|
8231
8263
|
type: "string"
|
|
8232
8264
|
},
|
|
8233
|
-
description: "CDP PermissionType values
|
|
8265
|
+
description: "CDP PermissionType values, e.g. geolocation|notifications|clipboardReadWrite."
|
|
8234
8266
|
},
|
|
8235
8267
|
origin: {
|
|
8236
8268
|
type: "string",
|
|
8237
|
-
description: "
|
|
8269
|
+
description: "Permission origin."
|
|
8238
8270
|
},
|
|
8239
8271
|
reset: {
|
|
8240
8272
|
type: "boolean",
|
|
8241
|
-
description: "
|
|
8273
|
+
description: "Reset permission grants."
|
|
8242
8274
|
}
|
|
8243
8275
|
},
|
|
8244
8276
|
required: [],
|
|
@@ -8247,25 +8279,25 @@ var MANIFEST = [
|
|
|
8247
8279
|
},
|
|
8248
8280
|
{
|
|
8249
8281
|
name: "fill",
|
|
8250
|
-
description: "
|
|
8282
|
+
description: "Replace an element contents; provide exactly one of UID or selector.",
|
|
8251
8283
|
inputSchema: {
|
|
8252
8284
|
type: "object",
|
|
8253
8285
|
properties: {
|
|
8254
8286
|
lease: {
|
|
8255
8287
|
type: "string",
|
|
8256
|
-
description: "Lease token
|
|
8288
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8257
8289
|
},
|
|
8258
8290
|
target: {
|
|
8259
8291
|
type: "string",
|
|
8260
|
-
description: "Page selector
|
|
8292
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8261
8293
|
},
|
|
8262
8294
|
uid: {
|
|
8263
8295
|
type: "number",
|
|
8264
|
-
description: "
|
|
8296
|
+
description: "Element backendDOMNodeId."
|
|
8265
8297
|
},
|
|
8266
8298
|
selector: {
|
|
8267
8299
|
type: "string",
|
|
8268
|
-
description: "CSS selector
|
|
8300
|
+
description: "CSS selector."
|
|
8269
8301
|
},
|
|
8270
8302
|
value: {
|
|
8271
8303
|
type: "string",
|
|
@@ -8280,35 +8312,35 @@ var MANIFEST = [
|
|
|
8280
8312
|
},
|
|
8281
8313
|
{
|
|
8282
8314
|
name: "fill_form",
|
|
8283
|
-
description: "
|
|
8315
|
+
description: "Fill multiple elements atomically; each field needs a UID or selector.",
|
|
8284
8316
|
inputSchema: {
|
|
8285
8317
|
type: "object",
|
|
8286
8318
|
properties: {
|
|
8287
8319
|
lease: {
|
|
8288
8320
|
type: "string",
|
|
8289
|
-
description: "Lease token
|
|
8321
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8290
8322
|
},
|
|
8291
8323
|
target: {
|
|
8292
8324
|
type: "string",
|
|
8293
|
-
description: "Page selector
|
|
8325
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8294
8326
|
},
|
|
8295
8327
|
fields: {
|
|
8296
8328
|
type: "array",
|
|
8297
|
-
description: "
|
|
8329
|
+
description: "Form fields to fill.",
|
|
8298
8330
|
items: {
|
|
8299
8331
|
type: "object",
|
|
8300
8332
|
properties: {
|
|
8301
8333
|
uid: {
|
|
8302
8334
|
type: "number",
|
|
8303
|
-
description: "
|
|
8335
|
+
description: "Element backendDOMNodeId."
|
|
8304
8336
|
},
|
|
8305
8337
|
selector: {
|
|
8306
8338
|
type: "string",
|
|
8307
|
-
description: "CSS selector
|
|
8339
|
+
description: "CSS selector."
|
|
8308
8340
|
},
|
|
8309
8341
|
value: {
|
|
8310
8342
|
type: "string",
|
|
8311
|
-
description: "
|
|
8343
|
+
description: "Text value to set; the field is cleared first, overwriting existing content."
|
|
8312
8344
|
}
|
|
8313
8345
|
},
|
|
8314
8346
|
required: [
|
|
@@ -8326,29 +8358,29 @@ var MANIFEST = [
|
|
|
8326
8358
|
},
|
|
8327
8359
|
{
|
|
8328
8360
|
name: "type_text",
|
|
8329
|
-
description: "
|
|
8361
|
+
description: "Append text to an element; input is atomic and does not clear existing content.",
|
|
8330
8362
|
inputSchema: {
|
|
8331
8363
|
type: "object",
|
|
8332
8364
|
properties: {
|
|
8333
8365
|
lease: {
|
|
8334
8366
|
type: "string",
|
|
8335
|
-
description: "Lease token
|
|
8367
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8336
8368
|
},
|
|
8337
8369
|
target: {
|
|
8338
8370
|
type: "string",
|
|
8339
|
-
description: "Page selector
|
|
8371
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8340
8372
|
},
|
|
8341
8373
|
uid: {
|
|
8342
8374
|
type: "number",
|
|
8343
|
-
description: "
|
|
8375
|
+
description: "Element backendDOMNodeId."
|
|
8344
8376
|
},
|
|
8345
8377
|
selector: {
|
|
8346
8378
|
type: "string",
|
|
8347
|
-
description: "CSS selector
|
|
8379
|
+
description: "CSS selector."
|
|
8348
8380
|
},
|
|
8349
8381
|
text: {
|
|
8350
8382
|
type: "string",
|
|
8351
|
-
description: "Text
|
|
8383
|
+
description: "Text substring."
|
|
8352
8384
|
}
|
|
8353
8385
|
},
|
|
8354
8386
|
required: [
|
|
@@ -8359,25 +8391,25 @@ var MANIFEST = [
|
|
|
8359
8391
|
},
|
|
8360
8392
|
{
|
|
8361
8393
|
name: "press_key",
|
|
8362
|
-
description: "
|
|
8394
|
+
description: "Press one named key or printable character with modifiers; no F-keys or IME.",
|
|
8363
8395
|
inputSchema: {
|
|
8364
8396
|
type: "object",
|
|
8365
8397
|
properties: {
|
|
8366
8398
|
lease: {
|
|
8367
8399
|
type: "string",
|
|
8368
|
-
description: "Lease token
|
|
8400
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8369
8401
|
},
|
|
8370
8402
|
target: {
|
|
8371
8403
|
type: "string",
|
|
8372
|
-
description: "Page selector
|
|
8404
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8373
8405
|
},
|
|
8374
8406
|
key: {
|
|
8375
8407
|
type: "string",
|
|
8376
|
-
description: "
|
|
8408
|
+
description: "Named key or printable character; e.g. Enter|Tab|Escape|ArrowDown|Backspace."
|
|
8377
8409
|
},
|
|
8378
8410
|
modifiers: {
|
|
8379
8411
|
type: "array",
|
|
8380
|
-
description: "Modifier
|
|
8412
|
+
description: "Modifier keys: Control|Ctrl|Shift|Alt|Meta|Cmd.",
|
|
8381
8413
|
items: {
|
|
8382
8414
|
type: "string"
|
|
8383
8415
|
}
|
|
@@ -8391,32 +8423,32 @@ var MANIFEST = [
|
|
|
8391
8423
|
},
|
|
8392
8424
|
{
|
|
8393
8425
|
name: "upload_file",
|
|
8394
|
-
description: "
|
|
8426
|
+
description: "Attach absolute file paths to a file input; provide an array.",
|
|
8395
8427
|
inputSchema: {
|
|
8396
8428
|
type: "object",
|
|
8397
8429
|
properties: {
|
|
8398
8430
|
lease: {
|
|
8399
8431
|
type: "string",
|
|
8400
|
-
description: "Lease token
|
|
8432
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8401
8433
|
},
|
|
8402
8434
|
target: {
|
|
8403
8435
|
type: "string",
|
|
8404
|
-
description: "Page selector
|
|
8436
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8405
8437
|
},
|
|
8406
8438
|
uid: {
|
|
8407
8439
|
type: "number",
|
|
8408
|
-
description: "
|
|
8440
|
+
description: "Element backendDOMNodeId."
|
|
8409
8441
|
},
|
|
8410
8442
|
selector: {
|
|
8411
8443
|
type: "string",
|
|
8412
|
-
description: "CSS selector
|
|
8444
|
+
description: "CSS selector."
|
|
8413
8445
|
},
|
|
8414
8446
|
files: {
|
|
8415
8447
|
type: "array",
|
|
8416
8448
|
items: {
|
|
8417
8449
|
type: "string"
|
|
8418
8450
|
},
|
|
8419
|
-
description:
|
|
8451
|
+
description: "Absolute file paths."
|
|
8420
8452
|
}
|
|
8421
8453
|
},
|
|
8422
8454
|
required: [
|
|
@@ -8427,17 +8459,17 @@ var MANIFEST = [
|
|
|
8427
8459
|
},
|
|
8428
8460
|
{
|
|
8429
8461
|
name: "take_screenshot",
|
|
8430
|
-
description: "
|
|
8462
|
+
description: "Capture a viewport, full page, or element to PNG/JPEG; oversized captures may be tiled.",
|
|
8431
8463
|
inputSchema: {
|
|
8432
8464
|
type: "object",
|
|
8433
8465
|
properties: {
|
|
8434
8466
|
lease: {
|
|
8435
8467
|
type: "string",
|
|
8436
|
-
description: "Lease token
|
|
8468
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8437
8469
|
},
|
|
8438
8470
|
target: {
|
|
8439
8471
|
type: "string",
|
|
8440
|
-
description: "Page selector
|
|
8472
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8441
8473
|
},
|
|
8442
8474
|
format: {
|
|
8443
8475
|
type: "string",
|
|
@@ -8445,47 +8477,47 @@ var MANIFEST = [
|
|
|
8445
8477
|
"png",
|
|
8446
8478
|
"jpeg"
|
|
8447
8479
|
],
|
|
8448
|
-
description: "Image format
|
|
8480
|
+
description: "Image/frame format."
|
|
8449
8481
|
},
|
|
8450
8482
|
quality: {
|
|
8451
8483
|
type: "number",
|
|
8452
|
-
description: "JPEG quality 0-100
|
|
8484
|
+
description: "JPEG quality 0-100."
|
|
8453
8485
|
},
|
|
8454
8486
|
fullPage: {
|
|
8455
8487
|
type: "boolean",
|
|
8456
|
-
description: "Capture
|
|
8488
|
+
description: "Capture full scrollable page."
|
|
8457
8489
|
},
|
|
8458
8490
|
scale: {
|
|
8459
8491
|
type: "number",
|
|
8460
|
-
description: "Output
|
|
8492
|
+
description: "Output scale (0<scale<=8)."
|
|
8461
8493
|
},
|
|
8462
8494
|
renderWidth: {
|
|
8463
8495
|
type: "number",
|
|
8464
|
-
description: "
|
|
8496
|
+
description: "Rendered viewport width."
|
|
8465
8497
|
},
|
|
8466
8498
|
renderHeight: {
|
|
8467
8499
|
type: "number",
|
|
8468
|
-
description: "
|
|
8500
|
+
description: "Rendered viewport height."
|
|
8469
8501
|
},
|
|
8470
8502
|
tile: {
|
|
8471
8503
|
type: "boolean",
|
|
8472
|
-
description: "
|
|
8504
|
+
description: "Vertical-band stitching."
|
|
8473
8505
|
},
|
|
8474
8506
|
uid: {
|
|
8475
8507
|
type: "number",
|
|
8476
|
-
description: "Element
|
|
8508
|
+
description: "Element backendDOMNodeId."
|
|
8477
8509
|
},
|
|
8478
8510
|
selector: {
|
|
8479
8511
|
type: "string",
|
|
8480
|
-
description: "CSS selector
|
|
8512
|
+
description: "CSS selector."
|
|
8481
8513
|
},
|
|
8482
8514
|
savePath: {
|
|
8483
8515
|
type: "string",
|
|
8484
|
-
description: "
|
|
8516
|
+
description: "Output file path."
|
|
8485
8517
|
},
|
|
8486
8518
|
returnBase64: {
|
|
8487
8519
|
type: "boolean",
|
|
8488
|
-
description: "
|
|
8520
|
+
description: "Return base64 bytes."
|
|
8489
8521
|
}
|
|
8490
8522
|
},
|
|
8491
8523
|
required: [],
|
|
@@ -8494,49 +8526,49 @@ var MANIFEST = [
|
|
|
8494
8526
|
},
|
|
8495
8527
|
{
|
|
8496
8528
|
name: "emulate",
|
|
8497
|
-
description: "
|
|
8529
|
+
description: "Apply browser emulation overrides; width and height must be paired.",
|
|
8498
8530
|
inputSchema: {
|
|
8499
8531
|
type: "object",
|
|
8500
8532
|
properties: {
|
|
8501
8533
|
lease: {
|
|
8502
8534
|
type: "string",
|
|
8503
|
-
description: "Lease token
|
|
8535
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8504
8536
|
},
|
|
8505
8537
|
target: {
|
|
8506
8538
|
type: "string",
|
|
8507
|
-
description: "Page selector
|
|
8539
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8508
8540
|
},
|
|
8509
8541
|
width: {
|
|
8510
8542
|
type: "number",
|
|
8511
|
-
description: "
|
|
8543
|
+
description: "Viewport width; pair with height."
|
|
8512
8544
|
},
|
|
8513
8545
|
height: {
|
|
8514
8546
|
type: "number",
|
|
8515
|
-
description: "
|
|
8547
|
+
description: "Viewport height; pair with width."
|
|
8516
8548
|
},
|
|
8517
8549
|
deviceScaleFactor: {
|
|
8518
8550
|
type: "number",
|
|
8519
|
-
description: "Device pixel ratio
|
|
8551
|
+
description: "Device pixel ratio."
|
|
8520
8552
|
},
|
|
8521
8553
|
mobile: {
|
|
8522
8554
|
type: "boolean",
|
|
8523
|
-
description: "
|
|
8555
|
+
description: "Mobile emulation."
|
|
8524
8556
|
},
|
|
8525
8557
|
userAgent: {
|
|
8526
8558
|
type: "string",
|
|
8527
|
-
description: "User-Agent
|
|
8559
|
+
description: "User-Agent override."
|
|
8528
8560
|
},
|
|
8529
8561
|
cpuThrottlingRate: {
|
|
8530
8562
|
type: "number",
|
|
8531
|
-
description: "CPU throttling
|
|
8563
|
+
description: "CPU throttling rate (>=1)."
|
|
8532
8564
|
},
|
|
8533
8565
|
media: {
|
|
8534
8566
|
type: "string",
|
|
8535
|
-
description: "
|
|
8567
|
+
description: "CSS media: screen|print|blank."
|
|
8536
8568
|
},
|
|
8537
8569
|
mediaFeatures: {
|
|
8538
8570
|
type: "array",
|
|
8539
|
-
description: "
|
|
8571
|
+
description: "CSS media feature overrides.",
|
|
8540
8572
|
items: {
|
|
8541
8573
|
type: "object",
|
|
8542
8574
|
properties: {
|
|
@@ -8546,7 +8578,7 @@ var MANIFEST = [
|
|
|
8546
8578
|
},
|
|
8547
8579
|
value: {
|
|
8548
8580
|
type: "string",
|
|
8549
|
-
description: "
|
|
8581
|
+
description: "Feature value, e.g. 'dark'."
|
|
8550
8582
|
}
|
|
8551
8583
|
},
|
|
8552
8584
|
required: [
|
|
@@ -8558,34 +8590,34 @@ var MANIFEST = [
|
|
|
8558
8590
|
},
|
|
8559
8591
|
networkConditions: {
|
|
8560
8592
|
type: "object",
|
|
8561
|
-
description: "Network overrides
|
|
8593
|
+
description: "Network condition overrides.",
|
|
8562
8594
|
properties: {
|
|
8563
8595
|
offline: {
|
|
8564
8596
|
type: "boolean",
|
|
8565
|
-
description: "
|
|
8597
|
+
description: "Simulate offline."
|
|
8566
8598
|
},
|
|
8567
8599
|
latency: {
|
|
8568
8600
|
type: "number",
|
|
8569
|
-
description: "
|
|
8601
|
+
description: "Network latency in milliseconds."
|
|
8570
8602
|
},
|
|
8571
8603
|
downloadThroughput: {
|
|
8572
8604
|
type: "number",
|
|
8573
|
-
description: "
|
|
8605
|
+
description: "Download throughput; -1 unlimited."
|
|
8574
8606
|
},
|
|
8575
8607
|
uploadThroughput: {
|
|
8576
8608
|
type: "number",
|
|
8577
|
-
description: "
|
|
8609
|
+
description: "Upload throughput; -1 unlimited."
|
|
8578
8610
|
},
|
|
8579
8611
|
connectionType: {
|
|
8580
8612
|
type: "string",
|
|
8581
|
-
description: "Connection
|
|
8613
|
+
description: "Connection: none|cellular2g|cellular3g|cellular4g|bluetooth|ethernet|wifi|wimax|other."
|
|
8582
8614
|
}
|
|
8583
8615
|
},
|
|
8584
8616
|
additionalProperties: false
|
|
8585
8617
|
},
|
|
8586
8618
|
clearOverrides: {
|
|
8587
8619
|
type: "boolean",
|
|
8588
|
-
description: "
|
|
8620
|
+
description: "Clear all emulation overrides."
|
|
8589
8621
|
}
|
|
8590
8622
|
},
|
|
8591
8623
|
required: [],
|
|
@@ -8594,33 +8626,33 @@ var MANIFEST = [
|
|
|
8594
8626
|
},
|
|
8595
8627
|
{
|
|
8596
8628
|
name: "resize_page",
|
|
8597
|
-
description: "
|
|
8629
|
+
description: "Set and verify page viewport metrics; width and height are required.",
|
|
8598
8630
|
inputSchema: {
|
|
8599
8631
|
type: "object",
|
|
8600
8632
|
properties: {
|
|
8601
8633
|
lease: {
|
|
8602
8634
|
type: "string",
|
|
8603
|
-
description: "Lease token
|
|
8635
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8604
8636
|
},
|
|
8605
8637
|
target: {
|
|
8606
8638
|
type: "string",
|
|
8607
|
-
description: "Page selector
|
|
8639
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8608
8640
|
},
|
|
8609
8641
|
width: {
|
|
8610
8642
|
type: "number",
|
|
8611
|
-
description: "Viewport width
|
|
8643
|
+
description: "Viewport width; pair with height."
|
|
8612
8644
|
},
|
|
8613
8645
|
height: {
|
|
8614
8646
|
type: "number",
|
|
8615
|
-
description: "Viewport height
|
|
8647
|
+
description: "Viewport height; pair with width."
|
|
8616
8648
|
},
|
|
8617
8649
|
deviceScaleFactor: {
|
|
8618
8650
|
type: "number",
|
|
8619
|
-
description: "Device pixel ratio
|
|
8651
|
+
description: "Device pixel ratio."
|
|
8620
8652
|
},
|
|
8621
8653
|
mobile: {
|
|
8622
8654
|
type: "boolean",
|
|
8623
|
-
description: "
|
|
8655
|
+
description: "Mobile emulation."
|
|
8624
8656
|
}
|
|
8625
8657
|
},
|
|
8626
8658
|
required: [
|
|
@@ -8632,33 +8664,33 @@ var MANIFEST = [
|
|
|
8632
8664
|
},
|
|
8633
8665
|
{
|
|
8634
8666
|
name: "handle_dialog",
|
|
8635
|
-
description: "
|
|
8667
|
+
description: "Handle the next JavaScript dialog; autoMs switches to timed multi-dialog mode.",
|
|
8636
8668
|
inputSchema: {
|
|
8637
8669
|
type: "object",
|
|
8638
8670
|
properties: {
|
|
8639
8671
|
lease: {
|
|
8640
8672
|
type: "string",
|
|
8641
|
-
description: "Lease token
|
|
8673
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8642
8674
|
},
|
|
8643
8675
|
target: {
|
|
8644
8676
|
type: "string",
|
|
8645
|
-
description: "Page selector
|
|
8677
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8646
8678
|
},
|
|
8647
8679
|
accept: {
|
|
8648
8680
|
type: "boolean",
|
|
8649
|
-
description: "
|
|
8681
|
+
description: "Accept or dismiss dialog."
|
|
8650
8682
|
},
|
|
8651
8683
|
promptText: {
|
|
8652
8684
|
type: "string",
|
|
8653
|
-
description: "
|
|
8685
|
+
description: "Prompt response text."
|
|
8654
8686
|
},
|
|
8655
8687
|
timeoutMs: {
|
|
8656
8688
|
type: "number",
|
|
8657
|
-
description: "
|
|
8689
|
+
description: "Timeout in milliseconds."
|
|
8658
8690
|
},
|
|
8659
8691
|
autoMs: {
|
|
8660
8692
|
type: "number",
|
|
8661
|
-
description: "
|
|
8693
|
+
description: "Multi-dialog window in milliseconds."
|
|
8662
8694
|
}
|
|
8663
8695
|
},
|
|
8664
8696
|
required: [
|
|
@@ -8669,29 +8701,29 @@ var MANIFEST = [
|
|
|
8669
8701
|
},
|
|
8670
8702
|
{
|
|
8671
8703
|
name: "list_console_messages",
|
|
8672
|
-
description: "Read
|
|
8704
|
+
description: "Read or recapture console messages for a page or worker; worker capture is Chrome-only.",
|
|
8673
8705
|
inputSchema: {
|
|
8674
8706
|
type: "object",
|
|
8675
8707
|
properties: {
|
|
8676
8708
|
lease: {
|
|
8677
8709
|
type: "string",
|
|
8678
|
-
description: "Lease token
|
|
8710
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8679
8711
|
},
|
|
8680
8712
|
target: {
|
|
8681
8713
|
type: "string",
|
|
8682
|
-
description: "Page selector
|
|
8714
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8683
8715
|
},
|
|
8684
8716
|
reload: {
|
|
8685
8717
|
type: "boolean",
|
|
8686
|
-
description: "
|
|
8718
|
+
description: "Reload before capture."
|
|
8687
8719
|
},
|
|
8688
8720
|
durationMs: {
|
|
8689
8721
|
type: "number",
|
|
8690
|
-
description: "Capture
|
|
8722
|
+
description: "Capture duration in milliseconds."
|
|
8691
8723
|
},
|
|
8692
8724
|
wake: {
|
|
8693
8725
|
type: "boolean",
|
|
8694
|
-
description: "
|
|
8726
|
+
description: "Wake worker before capture."
|
|
8695
8727
|
}
|
|
8696
8728
|
},
|
|
8697
8729
|
required: [],
|
|
@@ -8700,21 +8732,21 @@ var MANIFEST = [
|
|
|
8700
8732
|
},
|
|
8701
8733
|
{
|
|
8702
8734
|
name: "get_console_message",
|
|
8703
|
-
description: "Return one console entry by zero-based index from the
|
|
8735
|
+
description: "Return one console entry by zero-based index from the existing buffer.",
|
|
8704
8736
|
inputSchema: {
|
|
8705
8737
|
type: "object",
|
|
8706
8738
|
properties: {
|
|
8707
8739
|
lease: {
|
|
8708
8740
|
type: "string",
|
|
8709
|
-
description: "Lease token
|
|
8741
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8710
8742
|
},
|
|
8711
8743
|
target: {
|
|
8712
8744
|
type: "string",
|
|
8713
|
-
description: "Page selector
|
|
8745
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8714
8746
|
},
|
|
8715
8747
|
index: {
|
|
8716
8748
|
type: "number",
|
|
8717
|
-
description: "Zero-based index
|
|
8749
|
+
description: "Zero-based entry index."
|
|
8718
8750
|
}
|
|
8719
8751
|
},
|
|
8720
8752
|
required: [],
|
|
@@ -8723,33 +8755,33 @@ var MANIFEST = [
|
|
|
8723
8755
|
},
|
|
8724
8756
|
{
|
|
8725
8757
|
name: "list_network_requests",
|
|
8726
|
-
description: "
|
|
8758
|
+
description: "Read or recapture correlated network requests; worker capture is Chrome-only.",
|
|
8727
8759
|
inputSchema: {
|
|
8728
8760
|
type: "object",
|
|
8729
8761
|
properties: {
|
|
8730
8762
|
lease: {
|
|
8731
8763
|
type: "string",
|
|
8732
|
-
description: "Lease token
|
|
8764
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8733
8765
|
},
|
|
8734
8766
|
target: {
|
|
8735
8767
|
type: "string",
|
|
8736
|
-
description: "Page selector
|
|
8768
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8737
8769
|
},
|
|
8738
8770
|
reload: {
|
|
8739
8771
|
type: "boolean",
|
|
8740
|
-
description: "
|
|
8772
|
+
description: "Reload before capture."
|
|
8741
8773
|
},
|
|
8742
8774
|
durationMs: {
|
|
8743
8775
|
type: "number",
|
|
8744
|
-
description: "Capture
|
|
8776
|
+
description: "Capture duration in milliseconds."
|
|
8745
8777
|
},
|
|
8746
8778
|
filterUrl: {
|
|
8747
8779
|
type: "string",
|
|
8748
|
-
description: "
|
|
8780
|
+
description: "URL substring filter."
|
|
8749
8781
|
},
|
|
8750
8782
|
wake: {
|
|
8751
8783
|
type: "boolean",
|
|
8752
|
-
description: "
|
|
8784
|
+
description: "Wake worker before capture."
|
|
8753
8785
|
}
|
|
8754
8786
|
},
|
|
8755
8787
|
required: [],
|
|
@@ -8758,37 +8790,37 @@ var MANIFEST = [
|
|
|
8758
8790
|
},
|
|
8759
8791
|
{
|
|
8760
8792
|
name: "get_network_request",
|
|
8761
|
-
description: "Return
|
|
8793
|
+
description: "Return a network request by ID or URL; body capture requires URL.",
|
|
8762
8794
|
inputSchema: {
|
|
8763
8795
|
type: "object",
|
|
8764
8796
|
properties: {
|
|
8765
8797
|
lease: {
|
|
8766
8798
|
type: "string",
|
|
8767
|
-
description: "Lease token
|
|
8799
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8768
8800
|
},
|
|
8769
8801
|
target: {
|
|
8770
8802
|
type: "string",
|
|
8771
|
-
description: "Page selector
|
|
8803
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8772
8804
|
},
|
|
8773
8805
|
requestId: {
|
|
8774
8806
|
type: "string",
|
|
8775
|
-
description: "
|
|
8807
|
+
description: "Exact request ID."
|
|
8776
8808
|
},
|
|
8777
8809
|
url: {
|
|
8778
8810
|
type: "string",
|
|
8779
|
-
description: "
|
|
8811
|
+
description: "URL value."
|
|
8780
8812
|
},
|
|
8781
8813
|
includeBody: {
|
|
8782
8814
|
type: "boolean",
|
|
8783
|
-
description: "
|
|
8815
|
+
description: "Include response body."
|
|
8784
8816
|
},
|
|
8785
8817
|
durationMs: {
|
|
8786
8818
|
type: "number",
|
|
8787
|
-
description: "Capture
|
|
8819
|
+
description: "Capture duration in milliseconds."
|
|
8788
8820
|
},
|
|
8789
8821
|
wake: {
|
|
8790
8822
|
type: "boolean",
|
|
8791
|
-
description: "
|
|
8823
|
+
description: "Wake worker before capture."
|
|
8792
8824
|
}
|
|
8793
8825
|
},
|
|
8794
8826
|
required: [],
|
|
@@ -8797,24 +8829,24 @@ var MANIFEST = [
|
|
|
8797
8829
|
},
|
|
8798
8830
|
{
|
|
8799
8831
|
name: "performance_start_trace",
|
|
8800
|
-
description: "
|
|
8832
|
+
description: "Start an in-process trace; stop it from the same process.",
|
|
8801
8833
|
inputSchema: {
|
|
8802
8834
|
type: "object",
|
|
8803
8835
|
properties: {
|
|
8804
8836
|
lease: {
|
|
8805
8837
|
type: "string",
|
|
8806
|
-
description: "Lease token
|
|
8838
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8807
8839
|
},
|
|
8808
8840
|
target: {
|
|
8809
8841
|
type: "string",
|
|
8810
|
-
description: "Page selector
|
|
8842
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8811
8843
|
},
|
|
8812
8844
|
categories: {
|
|
8813
8845
|
type: "array",
|
|
8814
8846
|
items: {
|
|
8815
8847
|
type: "string"
|
|
8816
8848
|
},
|
|
8817
|
-
description: "Trace categories
|
|
8849
|
+
description: "Trace categories."
|
|
8818
8850
|
}
|
|
8819
8851
|
},
|
|
8820
8852
|
required: [],
|
|
@@ -8823,17 +8855,17 @@ var MANIFEST = [
|
|
|
8823
8855
|
},
|
|
8824
8856
|
{
|
|
8825
8857
|
name: "performance_stop_trace",
|
|
8826
|
-
description: "
|
|
8858
|
+
description: "Stop the in-process trace and write JSON; a live trace is required.",
|
|
8827
8859
|
inputSchema: {
|
|
8828
8860
|
type: "object",
|
|
8829
8861
|
properties: {
|
|
8830
8862
|
lease: {
|
|
8831
8863
|
type: "string",
|
|
8832
|
-
description: "Lease token
|
|
8864
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8833
8865
|
},
|
|
8834
8866
|
target: {
|
|
8835
8867
|
type: "string",
|
|
8836
|
-
description: "Page selector
|
|
8868
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8837
8869
|
}
|
|
8838
8870
|
},
|
|
8839
8871
|
required: [],
|
|
@@ -8842,17 +8874,17 @@ var MANIFEST = [
|
|
|
8842
8874
|
},
|
|
8843
8875
|
{
|
|
8844
8876
|
name: "performance_analyze_insight",
|
|
8845
|
-
description: "
|
|
8877
|
+
description: "Analyze a trace JSON file for key performance metrics; tracePath is required.",
|
|
8846
8878
|
inputSchema: {
|
|
8847
8879
|
type: "object",
|
|
8848
8880
|
properties: {
|
|
8849
8881
|
lease: {
|
|
8850
8882
|
type: "string",
|
|
8851
|
-
description: "Lease token
|
|
8883
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8852
8884
|
},
|
|
8853
8885
|
tracePath: {
|
|
8854
8886
|
type: "string",
|
|
8855
|
-
description: "
|
|
8887
|
+
description: "Trace JSON file path."
|
|
8856
8888
|
}
|
|
8857
8889
|
},
|
|
8858
8890
|
required: [],
|
|
@@ -8861,36 +8893,36 @@ var MANIFEST = [
|
|
|
8861
8893
|
},
|
|
8862
8894
|
{
|
|
8863
8895
|
name: "performance_trace",
|
|
8864
|
-
description: "
|
|
8896
|
+
description: "Run a one-shot trace with optional navigation and write JSON; durationMs controls capture time.",
|
|
8865
8897
|
inputSchema: {
|
|
8866
8898
|
type: "object",
|
|
8867
8899
|
properties: {
|
|
8868
8900
|
lease: {
|
|
8869
8901
|
type: "string",
|
|
8870
|
-
description: "Lease token
|
|
8902
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8871
8903
|
},
|
|
8872
8904
|
target: {
|
|
8873
8905
|
type: "string",
|
|
8874
|
-
description: "Page selector
|
|
8906
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8875
8907
|
},
|
|
8876
8908
|
durationMs: {
|
|
8877
8909
|
type: "number",
|
|
8878
|
-
description: "
|
|
8910
|
+
description: "Capture duration in milliseconds."
|
|
8879
8911
|
},
|
|
8880
8912
|
reload: {
|
|
8881
8913
|
type: "boolean",
|
|
8882
|
-
description: "Reload
|
|
8914
|
+
description: "Reload before capture."
|
|
8883
8915
|
},
|
|
8884
8916
|
navigateTo: {
|
|
8885
8917
|
type: "string",
|
|
8886
|
-
description: "
|
|
8918
|
+
description: "Navigation URL."
|
|
8887
8919
|
},
|
|
8888
8920
|
categories: {
|
|
8889
8921
|
type: "array",
|
|
8890
8922
|
items: {
|
|
8891
8923
|
type: "string"
|
|
8892
8924
|
},
|
|
8893
|
-
description: "Trace categories
|
|
8925
|
+
description: "Trace categories."
|
|
8894
8926
|
}
|
|
8895
8927
|
},
|
|
8896
8928
|
required: [],
|
|
@@ -8899,17 +8931,17 @@ var MANIFEST = [
|
|
|
8899
8931
|
},
|
|
8900
8932
|
{
|
|
8901
8933
|
name: "start_screen_recording",
|
|
8902
|
-
description: "
|
|
8934
|
+
description: "Start a tab screen recording; stop it from the same process.",
|
|
8903
8935
|
inputSchema: {
|
|
8904
8936
|
type: "object",
|
|
8905
8937
|
properties: {
|
|
8906
8938
|
lease: {
|
|
8907
8939
|
type: "string",
|
|
8908
|
-
description: "Lease token
|
|
8940
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8909
8941
|
},
|
|
8910
8942
|
target: {
|
|
8911
8943
|
type: "string",
|
|
8912
|
-
description: "Page selector
|
|
8944
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8913
8945
|
},
|
|
8914
8946
|
format: {
|
|
8915
8947
|
type: "string",
|
|
@@ -8917,27 +8949,27 @@ var MANIFEST = [
|
|
|
8917
8949
|
"jpeg",
|
|
8918
8950
|
"png"
|
|
8919
8951
|
],
|
|
8920
|
-
description: "
|
|
8952
|
+
description: "Image/frame format."
|
|
8921
8953
|
},
|
|
8922
8954
|
quality: {
|
|
8923
8955
|
type: "number",
|
|
8924
|
-
description: "JPEG
|
|
8956
|
+
description: "JPEG quality 0-100."
|
|
8925
8957
|
},
|
|
8926
8958
|
maxWidth: {
|
|
8927
8959
|
type: "number",
|
|
8928
|
-
description: "
|
|
8960
|
+
description: "Maximum frame width."
|
|
8929
8961
|
},
|
|
8930
8962
|
maxHeight: {
|
|
8931
8963
|
type: "number",
|
|
8932
|
-
description: "
|
|
8964
|
+
description: "Maximum frame height."
|
|
8933
8965
|
},
|
|
8934
8966
|
everyNthFrame: {
|
|
8935
8967
|
type: "number",
|
|
8936
|
-
description: "Capture
|
|
8968
|
+
description: "Capture every Nth frame."
|
|
8937
8969
|
},
|
|
8938
8970
|
bringToFront: {
|
|
8939
8971
|
type: "boolean",
|
|
8940
|
-
description: "Activate
|
|
8972
|
+
description: "Activate tab before recording."
|
|
8941
8973
|
}
|
|
8942
8974
|
},
|
|
8943
8975
|
required: [],
|
|
@@ -8946,21 +8978,21 @@ var MANIFEST = [
|
|
|
8946
8978
|
},
|
|
8947
8979
|
{
|
|
8948
8980
|
name: "stop_screen_recording",
|
|
8949
|
-
description: "
|
|
8981
|
+
description: "Stop a screen recording and encode MP4; target is required when multiple recordings exist.",
|
|
8950
8982
|
inputSchema: {
|
|
8951
8983
|
type: "object",
|
|
8952
8984
|
properties: {
|
|
8953
8985
|
lease: {
|
|
8954
8986
|
type: "string",
|
|
8955
|
-
description: "Lease token
|
|
8987
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8956
8988
|
},
|
|
8957
8989
|
target: {
|
|
8958
8990
|
type: "string",
|
|
8959
|
-
description: "
|
|
8991
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8960
8992
|
},
|
|
8961
8993
|
savePath: {
|
|
8962
8994
|
type: "string",
|
|
8963
|
-
description: "
|
|
8995
|
+
description: "Output file path."
|
|
8964
8996
|
}
|
|
8965
8997
|
},
|
|
8966
8998
|
required: [],
|
|
@@ -8969,21 +9001,21 @@ var MANIFEST = [
|
|
|
8969
9001
|
},
|
|
8970
9002
|
{
|
|
8971
9003
|
name: "take_heapsnapshot",
|
|
8972
|
-
description: "
|
|
9004
|
+
description: "Capture a V8 heap snapshot to JSON; the snapshot is not parsed.",
|
|
8973
9005
|
inputSchema: {
|
|
8974
9006
|
type: "object",
|
|
8975
9007
|
properties: {
|
|
8976
9008
|
lease: {
|
|
8977
9009
|
type: "string",
|
|
8978
|
-
description: "Lease token
|
|
9010
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
8979
9011
|
},
|
|
8980
9012
|
target: {
|
|
8981
9013
|
type: "string",
|
|
8982
|
-
description: "Page selector
|
|
9014
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
8983
9015
|
},
|
|
8984
9016
|
savePath: {
|
|
8985
9017
|
type: "string",
|
|
8986
|
-
description: "
|
|
9018
|
+
description: "Output file path."
|
|
8987
9019
|
}
|
|
8988
9020
|
},
|
|
8989
9021
|
required: [],
|
|
@@ -8992,28 +9024,28 @@ var MANIFEST = [
|
|
|
8992
9024
|
},
|
|
8993
9025
|
{
|
|
8994
9026
|
name: "lighthouse_audit",
|
|
8995
|
-
description: "
|
|
9027
|
+
description: "Run Lighthouse against a URL in its own tab; it does not audit a user tab.",
|
|
8996
9028
|
inputSchema: {
|
|
8997
9029
|
type: "object",
|
|
8998
9030
|
properties: {
|
|
8999
9031
|
lease: {
|
|
9000
9032
|
type: "string",
|
|
9001
|
-
description: "Lease token
|
|
9033
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
9002
9034
|
},
|
|
9003
9035
|
url: {
|
|
9004
9036
|
type: "string",
|
|
9005
|
-
description: "
|
|
9037
|
+
description: "URL value."
|
|
9006
9038
|
},
|
|
9007
9039
|
categories: {
|
|
9008
9040
|
type: "array",
|
|
9009
9041
|
items: {
|
|
9010
9042
|
type: "string"
|
|
9011
9043
|
},
|
|
9012
|
-
description:
|
|
9044
|
+
description: "Lighthouse categories to run (--only-categories)."
|
|
9013
9045
|
},
|
|
9014
9046
|
savePath: {
|
|
9015
9047
|
type: "string",
|
|
9016
|
-
description: "
|
|
9048
|
+
description: "Output file path."
|
|
9017
9049
|
},
|
|
9018
9050
|
formFactor: {
|
|
9019
9051
|
type: "string",
|
|
@@ -9021,11 +9053,11 @@ var MANIFEST = [
|
|
|
9021
9053
|
"desktop",
|
|
9022
9054
|
"mobile"
|
|
9023
9055
|
],
|
|
9024
|
-
description:
|
|
9056
|
+
description: "Lighthouse form factor."
|
|
9025
9057
|
},
|
|
9026
9058
|
timeoutMs: {
|
|
9027
9059
|
type: "number",
|
|
9028
|
-
description: "
|
|
9060
|
+
description: "Timeout in milliseconds."
|
|
9029
9061
|
}
|
|
9030
9062
|
},
|
|
9031
9063
|
required: [
|
|
@@ -9036,21 +9068,21 @@ var MANIFEST = [
|
|
|
9036
9068
|
},
|
|
9037
9069
|
{
|
|
9038
9070
|
name: "mock_request",
|
|
9039
|
-
description: "Register a
|
|
9071
|
+
description: "Register a persistent request mock; urlPattern is required.",
|
|
9040
9072
|
inputSchema: {
|
|
9041
9073
|
type: "object",
|
|
9042
9074
|
properties: {
|
|
9043
9075
|
lease: {
|
|
9044
9076
|
type: "string",
|
|
9045
|
-
description: "Lease token
|
|
9077
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
9046
9078
|
},
|
|
9047
9079
|
target: {
|
|
9048
9080
|
type: "string",
|
|
9049
|
-
description: "
|
|
9081
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
9050
9082
|
},
|
|
9051
9083
|
urlPattern: {
|
|
9052
9084
|
type: "string",
|
|
9053
|
-
description:
|
|
9085
|
+
description: "URL glob (*, ?; \\ escapes)."
|
|
9054
9086
|
},
|
|
9055
9087
|
action: {
|
|
9056
9088
|
type: "string",
|
|
@@ -9063,39 +9095,39 @@ var MANIFEST = [
|
|
|
9063
9095
|
},
|
|
9064
9096
|
status: {
|
|
9065
9097
|
type: "number",
|
|
9066
|
-
description: "
|
|
9098
|
+
description: "Mock HTTP status."
|
|
9067
9099
|
},
|
|
9068
9100
|
body: {
|
|
9069
9101
|
type: "string",
|
|
9070
|
-
description: "
|
|
9102
|
+
description: "Mock response body."
|
|
9071
9103
|
},
|
|
9072
9104
|
contentType: {
|
|
9073
9105
|
type: "string",
|
|
9074
|
-
description:
|
|
9106
|
+
description: "Response Content-Type."
|
|
9075
9107
|
},
|
|
9076
9108
|
headers: {
|
|
9077
9109
|
type: "object",
|
|
9078
|
-
description:
|
|
9110
|
+
description: "Extra response headers."
|
|
9079
9111
|
},
|
|
9080
9112
|
errorReason: {
|
|
9081
9113
|
type: "string",
|
|
9082
|
-
description:
|
|
9114
|
+
description: "CDP Network.ErrorReason, e.g. Failed|BlockedByClient|ConnectionRefused|TimedOut."
|
|
9083
9115
|
},
|
|
9084
9116
|
method: {
|
|
9085
9117
|
type: "string",
|
|
9086
|
-
description:
|
|
9118
|
+
description: "HTTP method."
|
|
9087
9119
|
},
|
|
9088
9120
|
delayMs: {
|
|
9089
9121
|
type: "number",
|
|
9090
|
-
description: "
|
|
9122
|
+
description: "Artificial delay in milliseconds."
|
|
9091
9123
|
},
|
|
9092
9124
|
failRate: {
|
|
9093
9125
|
type: "number",
|
|
9094
|
-
description: "
|
|
9126
|
+
description: "Failure probability 0..1."
|
|
9095
9127
|
},
|
|
9096
9128
|
reload: {
|
|
9097
9129
|
type: "boolean",
|
|
9098
|
-
description: "Reload
|
|
9130
|
+
description: "Reload before capture."
|
|
9099
9131
|
}
|
|
9100
9132
|
},
|
|
9101
9133
|
required: [
|
|
@@ -9106,13 +9138,13 @@ var MANIFEST = [
|
|
|
9106
9138
|
},
|
|
9107
9139
|
{
|
|
9108
9140
|
name: "list_mocks",
|
|
9109
|
-
description: "List active
|
|
9141
|
+
description: "List active request-mocking sessions and hit counts.",
|
|
9110
9142
|
inputSchema: {
|
|
9111
9143
|
type: "object",
|
|
9112
9144
|
properties: {
|
|
9113
9145
|
lease: {
|
|
9114
9146
|
type: "string",
|
|
9115
|
-
description: "Lease token
|
|
9147
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
9116
9148
|
},
|
|
9117
9149
|
target: {
|
|
9118
9150
|
type: "string",
|
|
@@ -9125,17 +9157,17 @@ var MANIFEST = [
|
|
|
9125
9157
|
},
|
|
9126
9158
|
{
|
|
9127
9159
|
name: "clear_mocks",
|
|
9128
|
-
description: "
|
|
9160
|
+
description: "Clear the selected or all request-mocking sessions.",
|
|
9129
9161
|
inputSchema: {
|
|
9130
9162
|
type: "object",
|
|
9131
9163
|
properties: {
|
|
9132
9164
|
lease: {
|
|
9133
9165
|
type: "string",
|
|
9134
|
-
description: "Lease token
|
|
9166
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
9135
9167
|
},
|
|
9136
9168
|
target: {
|
|
9137
9169
|
type: "string",
|
|
9138
|
-
description: "
|
|
9170
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
9139
9171
|
},
|
|
9140
9172
|
all: {
|
|
9141
9173
|
type: "boolean",
|
|
@@ -9148,29 +9180,29 @@ var MANIFEST = [
|
|
|
9148
9180
|
},
|
|
9149
9181
|
{
|
|
9150
9182
|
name: "claim_page",
|
|
9151
|
-
description: "
|
|
9183
|
+
description: "Claim an existing tab or open a fresh one; CLI use is refused.",
|
|
9152
9184
|
inputSchema: {
|
|
9153
9185
|
type: "object",
|
|
9154
9186
|
properties: {
|
|
9155
9187
|
target: {
|
|
9156
9188
|
type: "string",
|
|
9157
|
-
description: "
|
|
9189
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
9158
9190
|
},
|
|
9159
9191
|
targetId: {
|
|
9160
9192
|
type: "string",
|
|
9161
|
-
description: "Exact target
|
|
9193
|
+
description: "Exact target ID."
|
|
9162
9194
|
},
|
|
9163
9195
|
url: {
|
|
9164
9196
|
type: "string",
|
|
9165
|
-
description: "
|
|
9197
|
+
description: "URL value."
|
|
9166
9198
|
},
|
|
9167
9199
|
label: {
|
|
9168
9200
|
type: "string",
|
|
9169
|
-
description: "Agent
|
|
9201
|
+
description: "Agent lease label."
|
|
9170
9202
|
},
|
|
9171
9203
|
ttlMs: {
|
|
9172
9204
|
type: "number",
|
|
9173
|
-
description: "
|
|
9205
|
+
description: "Lease TTL in milliseconds."
|
|
9174
9206
|
}
|
|
9175
9207
|
},
|
|
9176
9208
|
required: [],
|
|
@@ -9179,21 +9211,21 @@ var MANIFEST = [
|
|
|
9179
9211
|
},
|
|
9180
9212
|
{
|
|
9181
9213
|
name: "release_page",
|
|
9182
|
-
description: "
|
|
9214
|
+
description: "Release a page lease and optionally close its tab; provide lease or target.",
|
|
9183
9215
|
inputSchema: {
|
|
9184
9216
|
type: "object",
|
|
9185
9217
|
properties: {
|
|
9186
9218
|
lease: {
|
|
9187
9219
|
type: "string",
|
|
9188
|
-
description: "
|
|
9220
|
+
description: "Lease token; omit for a tab this process already holds. See server instructions."
|
|
9189
9221
|
},
|
|
9190
9222
|
target: {
|
|
9191
9223
|
type: "string",
|
|
9192
|
-
description: "
|
|
9224
|
+
description: "Page selector (index:/url:/title:/label:/targetId, default active); grammar in server instructions."
|
|
9193
9225
|
},
|
|
9194
9226
|
close: {
|
|
9195
9227
|
type: "boolean",
|
|
9196
|
-
description: "
|
|
9228
|
+
description: "Override close behavior."
|
|
9197
9229
|
}
|
|
9198
9230
|
},
|
|
9199
9231
|
required: [],
|
|
@@ -9202,7 +9234,7 @@ var MANIFEST = [
|
|
|
9202
9234
|
},
|
|
9203
9235
|
{
|
|
9204
9236
|
name: "list_leases",
|
|
9205
|
-
description: "
|
|
9237
|
+
description: "List active leases for diagnosis without exposing lease tokens.",
|
|
9206
9238
|
inputSchema: {
|
|
9207
9239
|
type: "object",
|
|
9208
9240
|
properties: {},
|