chrome-devtools-mcp 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -21
- package/{build → out/Default/gen}/src/BrowserManager.js +49 -18
- package/out/Default/gen/src/LogpointManager.js +307 -0
- package/{build → out/Default/gen}/src/McpContext.js +439 -133
- package/{build → out/Default/gen}/src/McpPage.js +368 -59
- package/{build → out/Default/gen}/src/McpResponse.js +90 -47
- package/out/Default/gen/src/NetworkOverrideManager.js +419 -0
- package/{build → out/Default/gen}/src/TextSnapshot.js +37 -18
- package/out/Default/gen/src/ToolHandler.js +512 -0
- package/{build → out/Default/gen}/src/bin/chrome-devtools-mcp-main.js +6 -4
- package/{build → out/Default/gen}/src/bin/chrome-devtools.js +4 -4
- package/{build → out/Default/gen}/src/collectors/PageCollector.js +28 -12
- package/{build → out/Default/gen}/src/collectors/ServiceWorkerCollector.js +2 -2
- package/out/Default/gen/src/collectors/constants.js +7 -0
- package/out/Default/gen/src/config/ConfigParser.js +162 -0
- package/{build → out/Default/gen}/src/config/ConfigWatcher.js +3 -2
- package/out/Default/gen/src/config/ServerConfig.js +251 -0
- package/{build → out/Default/gen}/src/config/browser-options.js +13 -4
- package/{build → out/Default/gen}/src/config/category-options.js +10 -0
- package/{build → out/Default/gen}/src/config/cli-options.js +223 -22
- package/{build → out/Default/gen}/src/config/mcp-options.js +62 -36
- package/{build → out/Default/gen}/src/config/puppeteer-options.js +4 -2
- package/{build → out/Default/gen}/src/daemon/client.js +3 -3
- package/{build → out/Default/gen}/src/daemon/daemon.js +7 -3
- package/{build → out/Default/gen}/src/daemon/utils.js +2 -1
- package/{build → out/Default/gen}/src/devtools/DevToolsCommentBridge.js +28 -5
- package/{build → out/Default/gen}/src/devtools/DevtoolsUtils.js +94 -20
- package/{build → out/Default/gen}/src/formatters/ConsoleFormatter.js +28 -1
- package/{build → out/Default/gen}/src/formatters/HeapSnapshotFormatter.js +14 -18
- package/out/Default/gen/src/formatters/LogpointFormatter.js +62 -0
- package/{build → out/Default/gen}/src/formatters/NetworkFormatter.js +70 -17
- package/out/Default/gen/src/formatters/NetworkOverridesFormatter.js +49 -0
- package/out/Default/gen/src/formatters/RemoteObjectFormatter.js +231 -0
- package/{build → out/Default/gen}/src/formatters/SnapshotFormatter.js +13 -3
- package/out/Default/gen/src/formatters/WebAuthnFormatter.js +56 -0
- package/out/Default/gen/src/index.js +435 -0
- package/out/Default/gen/src/processors/HeapSnapshotManager.js +569 -0
- package/{build → out/Default/gen}/src/telemetry/transformation.js +1 -1
- package/{build → out/Default/gen}/src/third_party/THIRD_PARTY_NOTICES +796 -712
- package/out/Default/gen/src/third_party/bundled-packages.json +11 -0
- package/out/Default/gen/src/third_party/cli.js +9023 -0
- package/out/Default/gen/src/third_party/devtools-formatter-worker.js +31904 -0
- package/out/Default/gen/src/third_party/devtools-heap-snapshot-worker.js +26467 -0
- package/out/Default/gen/src/third_party/index.js +201574 -0
- package/out/Default/gen/src/third_party/lighthouse-devtools-mcp-bundle.js +60395 -0
- package/out/Default/gen/src/tools/ToolDefinition.js +180 -0
- package/{build → out/Default/gen}/src/tools/categories.js +4 -0
- package/{build → out/Default/gen}/src/tools/comments.js +46 -4
- package/{build → out/Default/gen}/src/tools/console.js +8 -6
- package/{build → out/Default/gen}/src/tools/css.js +1 -0
- package/{build → out/Default/gen}/src/tools/emulation.js +5 -4
- package/{build → out/Default/gen}/src/tools/extensions.js +6 -1
- package/{build → out/Default/gen}/src/tools/input.js +23 -28
- package/{build → out/Default/gen}/src/tools/lighthouse.js +30 -8
- package/out/Default/gen/src/tools/logpoints.js +51 -0
- package/{build → out/Default/gen}/src/tools/memory.js +59 -53
- package/out/Default/gen/src/tools/network.js +260 -0
- package/{build → out/Default/gen}/src/tools/pages.js +48 -6
- package/{build → out/Default/gen}/src/tools/performance.js +33 -7
- package/{build → out/Default/gen}/src/tools/pwa.js +7 -0
- package/{build → out/Default/gen}/src/tools/screencast.js +3 -1
- package/{build → out/Default/gen}/src/tools/screenshot.js +23 -7
- package/{build → out/Default/gen}/src/tools/script.js +38 -6
- package/{build → out/Default/gen}/src/tools/slim/tools.js +21 -5
- package/{build → out/Default/gen}/src/tools/snapshot.js +29 -5
- package/{build → out/Default/gen}/src/tools/thirdPartyDeveloper.js +6 -20
- package/out/Default/gen/src/tools/toolNames.js +10 -0
- package/{build → out/Default/gen}/src/tools/tools.js +4 -0
- package/out/Default/gen/src/tools/webauthn.js +51 -0
- package/{build → out/Default/gen}/src/tools/webmcp.js +5 -19
- package/out/Default/gen/src/utils/TaskRunner.js +151 -0
- package/{build → out/Default/gen}/src/utils/WaitForHelper.js +16 -2
- package/{build → out/Default/gen}/src/utils/bytes.js +2 -12
- package/{build → out/Default/gen}/src/utils/check-for-updates.js +8 -2
- package/out/Default/gen/src/utils/disclaimers.js +27 -0
- package/{build → out/Default/gen}/src/utils/errorHandling.js +3 -0
- package/{build → out/Default/gen}/src/utils/keyboard.js +15 -5
- package/out/Default/gen/src/utils/logger.js +131 -0
- package/out/Default/gen/src/utils/network.js +81 -0
- package/out/Default/gen/src/utils/raceWithSignal.js +26 -0
- package/out/Default/gen/src/utils/resourceType.js +27 -0
- package/out/Default/gen/src/utils/text.js +44 -0
- package/out/Default/gen/src/utils/timeout.js +14 -0
- package/{build → out/Default/gen}/src/utils/url.js +73 -17
- package/{build → out/Default/gen}/src/version.js +1 -1
- package/package.json +26 -32
- package/skills/a11y-debugging/SKILL.md +3 -8
- package/skills/chrome-devtools/SKILL.md +2 -0
- package/skills/chrome-devtools-cli/SKILL.md +12 -1
- package/build/src/ToolHandler.js +0 -360
- package/build/src/config/ConfigParser.js +0 -264
- package/build/src/index.js +0 -282
- package/build/src/processors/HeapSnapshotManager.js +0 -307
- package/build/src/third_party/bundled-packages.json +0 -11
- package/build/src/third_party/devtools-formatter-worker.js +0 -16625
- package/build/src/third_party/devtools-heap-snapshot-worker.js +0 -12084
- package/build/src/third_party/index.js +0 -189603
- package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +0 -58435
- package/build/src/tools/ToolDefinition.js +0 -92
- package/build/src/tools/network.js +0 -128
- package/build/src/utils/logger.js +0 -62
- package/build/src/utils/text.js +0 -15
- /package/{build → out/Default/gen}/src/McpWorker.js +0 -0
- /package/{build → out/Default/gen}/src/SlimMcpResponse.js +0 -0
- /package/{build → out/Default/gen}/src/bin/check-latest-version.js +0 -0
- /package/{build → out/Default/gen}/src/bin/chrome-devtools-mcp.js +0 -0
- /package/{build → out/Default/gen}/src/config/ConfigLocator.js +0 -0
- /package/{build → out/Default/gen}/src/config/cli-commands.js +0 -0
- /package/{build → out/Default/gen}/src/config/tool-options.js +0 -0
- /package/{build → out/Default/gen}/src/daemon/types.js +0 -0
- /package/{build → out/Default/gen}/src/devtools/McpHostBindingAdapter.js +0 -0
- /package/{build → out/Default/gen}/src/devtools/issueDescriptions.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/CommentFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/CssFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/formatters/IssueFormatter.js +0 -0
- /package/{build → out/Default/gen}/src/processors/ChunkedTraceParser.js +0 -0
- /package/{build → out/Default/gen}/src/processors/PerformanceTrace.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/ClearcutLogger.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/WatchdogClient.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/errors.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/flagUtils.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/metricsRegistry.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/persistence.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/types.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/watchdog/ClearcutSender.js +0 -0
- /package/{build → out/Default/gen}/src/telemetry/watchdog/main.js +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/LowTextContrast.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/bounceTrackingMitigations.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsDisabledScheme.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsDisallowedByMode.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsOriginMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspEvalViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspInlineViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/cspURLViolation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/deprecation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormLabelForNameError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/heavyAd.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/mixedContent.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementLowContrast.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/propertyRuleIssue.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedArrayBuffer.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/stylesheetLateImport.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/stylesheetRequestFailed.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallManifestMissingId.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallNoManifest.md +0 -0
- /package/{build → out/Default/gen}/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +0 -0
- /package/{build → out/Default/gen}/src/types.js +0 -0
- /package/{build → out/Default/gen}/src/utils/files.js +0 -0
- /package/{build → out/Default/gen}/src/utils/id.js +0 -0
- /package/{build → out/Default/gen}/src/utils/pagination.js +0 -0
- /package/{build → out/Default/gen}/src/utils/polyfill.js +0 -0
|
@@ -39,16 +39,18 @@ export const commands = {
|
|
|
39
39
|
pageIdx: {
|
|
40
40
|
name: 'pageIdx',
|
|
41
41
|
type: 'integer',
|
|
42
|
-
description: 'The zero-based page index. Defaults to 0.',
|
|
42
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
43
43
|
required: false,
|
|
44
44
|
positional: false,
|
|
45
|
+
default: 0,
|
|
45
46
|
},
|
|
46
47
|
pageSize: {
|
|
47
48
|
name: 'pageSize',
|
|
48
49
|
type: 'integer',
|
|
49
|
-
description: 'The number of
|
|
50
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
50
51
|
required: false,
|
|
51
52
|
positional: false,
|
|
53
|
+
default: 50,
|
|
52
54
|
},
|
|
53
55
|
},
|
|
54
56
|
},
|
|
@@ -188,14 +190,73 @@ export const commands = {
|
|
|
188
190
|
pageIdx: {
|
|
189
191
|
name: 'pageIdx',
|
|
190
192
|
type: 'integer',
|
|
191
|
-
description: 'The page index
|
|
193
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
192
194
|
required: false,
|
|
193
195
|
positional: false,
|
|
196
|
+
default: 0,
|
|
194
197
|
},
|
|
195
198
|
pageSize: {
|
|
196
199
|
name: 'pageSize',
|
|
197
200
|
type: 'integer',
|
|
198
|
-
description: 'The page
|
|
201
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
202
|
+
required: false,
|
|
203
|
+
positional: false,
|
|
204
|
+
default: 50,
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
configure_webauthn: {
|
|
209
|
+
description: 'Adds a virtual WebAuthn authenticator to the page. Call this before the page calls navigator.credentials. It answers navigator.credentials.create() and get() and is removed when the page closes. Omitted parameters keep their current values. Changing protocol, transport, hasResidentKey or hasUserVerification replaces the authenticator and deletes its credentials. enabled=false ignores other parameters and removes all authenticators on the page. (requires flag: --categoryWebauthn=true)',
|
|
210
|
+
category: 'WebAuthn',
|
|
211
|
+
args: {
|
|
212
|
+
pageId: {
|
|
213
|
+
name: 'pageId',
|
|
214
|
+
type: 'number',
|
|
215
|
+
description: 'Targets a specific page by ID.',
|
|
216
|
+
required: true,
|
|
217
|
+
positional: true,
|
|
218
|
+
},
|
|
219
|
+
enabled: {
|
|
220
|
+
name: 'enabled',
|
|
221
|
+
type: 'boolean',
|
|
222
|
+
description: 'Set to false to remove all virtual authenticators from the page.',
|
|
223
|
+
required: true,
|
|
224
|
+
positional: true,
|
|
225
|
+
},
|
|
226
|
+
protocol: {
|
|
227
|
+
name: 'protocol',
|
|
228
|
+
type: 'string',
|
|
229
|
+
description: 'The authenticator protocol. Default: ctap2.',
|
|
230
|
+
required: false,
|
|
231
|
+
positional: false,
|
|
232
|
+
enum: ['ctap2', 'u2f'],
|
|
233
|
+
},
|
|
234
|
+
transport: {
|
|
235
|
+
name: 'transport',
|
|
236
|
+
type: 'string',
|
|
237
|
+
description: '"internal" is a platform authenticator such as Touch ID or Windows Hello; the others are roaming security keys. Default: internal.',
|
|
238
|
+
required: false,
|
|
239
|
+
positional: false,
|
|
240
|
+
enum: ['internal', 'usb', 'nfc', 'ble', 'hybrid'],
|
|
241
|
+
},
|
|
242
|
+
hasResidentKey: {
|
|
243
|
+
name: 'hasResidentKey',
|
|
244
|
+
type: 'boolean',
|
|
245
|
+
description: 'Whether the authenticator can store discoverable credentials (passkeys). Default: true. u2f does not support it, so it is false for u2f.',
|
|
246
|
+
required: false,
|
|
247
|
+
positional: false,
|
|
248
|
+
},
|
|
249
|
+
hasUserVerification: {
|
|
250
|
+
name: 'hasUserVerification',
|
|
251
|
+
type: 'boolean',
|
|
252
|
+
description: 'Whether the authenticator supports user verification (PIN or biometrics). Default: true. u2f does not support it, so it is false for u2f.',
|
|
253
|
+
required: false,
|
|
254
|
+
positional: false,
|
|
255
|
+
},
|
|
256
|
+
isUserVerified: {
|
|
257
|
+
name: 'isUserVerified',
|
|
258
|
+
type: 'boolean',
|
|
259
|
+
description: 'Whether user verification succeeds. Set to false to test a failed verification. Default: true.',
|
|
199
260
|
required: false,
|
|
200
261
|
positional: false,
|
|
201
262
|
},
|
|
@@ -588,16 +649,18 @@ export const commands = {
|
|
|
588
649
|
pageIdx: {
|
|
589
650
|
name: 'pageIdx',
|
|
590
651
|
type: 'integer',
|
|
591
|
-
description: 'The page index
|
|
652
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
592
653
|
required: false,
|
|
593
654
|
positional: false,
|
|
655
|
+
default: 0,
|
|
594
656
|
},
|
|
595
657
|
pageSize: {
|
|
596
658
|
name: 'pageSize',
|
|
597
659
|
type: 'integer',
|
|
598
|
-
description: 'The page
|
|
660
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
599
661
|
required: false,
|
|
600
662
|
positional: false,
|
|
663
|
+
default: 50,
|
|
601
664
|
},
|
|
602
665
|
},
|
|
603
666
|
},
|
|
@@ -645,16 +708,18 @@ export const commands = {
|
|
|
645
708
|
pageIdx: {
|
|
646
709
|
name: 'pageIdx',
|
|
647
710
|
type: 'integer',
|
|
648
|
-
description: 'The page index
|
|
711
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
649
712
|
required: false,
|
|
650
713
|
positional: false,
|
|
714
|
+
default: 0,
|
|
651
715
|
},
|
|
652
716
|
pageSize: {
|
|
653
717
|
name: 'pageSize',
|
|
654
718
|
type: 'integer',
|
|
655
|
-
description: 'The
|
|
719
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
656
720
|
required: false,
|
|
657
721
|
positional: false,
|
|
722
|
+
default: 50,
|
|
658
723
|
},
|
|
659
724
|
},
|
|
660
725
|
},
|
|
@@ -699,16 +764,18 @@ export const commands = {
|
|
|
699
764
|
pageIdx: {
|
|
700
765
|
name: 'pageIdx',
|
|
701
766
|
type: 'integer',
|
|
702
|
-
description: 'The page index
|
|
767
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
703
768
|
required: false,
|
|
704
769
|
positional: false,
|
|
770
|
+
default: 0,
|
|
705
771
|
},
|
|
706
772
|
pageSize: {
|
|
707
773
|
name: 'pageSize',
|
|
708
774
|
type: 'integer',
|
|
709
|
-
description: 'The page
|
|
775
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
710
776
|
required: false,
|
|
711
777
|
positional: false,
|
|
778
|
+
default: 50,
|
|
712
779
|
},
|
|
713
780
|
maxNameLength: {
|
|
714
781
|
name: 'maxNameLength',
|
|
@@ -769,16 +836,18 @@ export const commands = {
|
|
|
769
836
|
pageIdx: {
|
|
770
837
|
name: 'pageIdx',
|
|
771
838
|
type: 'integer',
|
|
772
|
-
description: 'The page index
|
|
839
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
773
840
|
required: false,
|
|
774
841
|
positional: false,
|
|
842
|
+
default: 0,
|
|
775
843
|
},
|
|
776
844
|
pageSize: {
|
|
777
845
|
name: 'pageSize',
|
|
778
846
|
type: 'integer',
|
|
779
|
-
description: 'The page
|
|
847
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
780
848
|
required: false,
|
|
781
849
|
positional: false,
|
|
850
|
+
default: 50,
|
|
782
851
|
},
|
|
783
852
|
},
|
|
784
853
|
},
|
|
@@ -837,16 +906,18 @@ export const commands = {
|
|
|
837
906
|
pageIdx: {
|
|
838
907
|
name: 'pageIdx',
|
|
839
908
|
type: 'integer',
|
|
840
|
-
description: 'The page index
|
|
909
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
841
910
|
required: false,
|
|
842
911
|
positional: false,
|
|
912
|
+
default: 0,
|
|
843
913
|
},
|
|
844
914
|
pageSize: {
|
|
845
915
|
name: 'pageSize',
|
|
846
916
|
type: 'integer',
|
|
847
|
-
description: 'The page
|
|
917
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
848
918
|
required: false,
|
|
849
919
|
positional: false,
|
|
920
|
+
default: 50,
|
|
850
921
|
},
|
|
851
922
|
},
|
|
852
923
|
},
|
|
@@ -1153,7 +1224,7 @@ export const commands = {
|
|
|
1153
1224
|
pageIdx: {
|
|
1154
1225
|
name: 'pageIdx',
|
|
1155
1226
|
type: 'integer',
|
|
1156
|
-
description: 'Page number to return (0-based). When omitted, returns the first page.',
|
|
1227
|
+
description: 'Page number to return (0-based). When omitted, returns the first page. Ignored unless pageSize is set.',
|
|
1157
1228
|
required: false,
|
|
1158
1229
|
positional: false,
|
|
1159
1230
|
},
|
|
@@ -1183,14 +1254,14 @@ export const commands = {
|
|
|
1183
1254
|
serviceWorkerId: {
|
|
1184
1255
|
name: 'serviceWorkerId',
|
|
1185
1256
|
type: 'string',
|
|
1186
|
-
description: 'Filter messages
|
|
1257
|
+
description: 'Filter messages by the service worker ID shown by list_pages (sw-N).',
|
|
1187
1258
|
required: false,
|
|
1188
1259
|
positional: false,
|
|
1189
1260
|
},
|
|
1190
1261
|
},
|
|
1191
1262
|
},
|
|
1192
1263
|
list_extensions: {
|
|
1193
|
-
description: 'Lists
|
|
1264
|
+
description: 'Lists the unpacked Chrome extensions loaded in the browser. This includes their name, ID, version, and enabled status. Extensions installed from the Chrome Web Store are not included. (requires flag: --categoryExtensions=true)',
|
|
1194
1265
|
category: 'Extensions',
|
|
1195
1266
|
args: {},
|
|
1196
1267
|
},
|
|
@@ -1215,7 +1286,7 @@ export const commands = {
|
|
|
1215
1286
|
pageIdx: {
|
|
1216
1287
|
name: 'pageIdx',
|
|
1217
1288
|
type: 'integer',
|
|
1218
|
-
description: 'Page number to return (0-based). When omitted, returns the first page.',
|
|
1289
|
+
description: 'Page number to return (0-based). When omitted, returns the first page. Ignored unless pageSize is set.',
|
|
1219
1290
|
required: false,
|
|
1220
1291
|
positional: false,
|
|
1221
1292
|
},
|
|
@@ -1254,6 +1325,67 @@ export const commands = {
|
|
|
1254
1325
|
},
|
|
1255
1326
|
},
|
|
1256
1327
|
},
|
|
1328
|
+
mock_network: {
|
|
1329
|
+
description: 'Inspect or update network mocks for a page. With no actions, list mocks matching the supplied filters, or all mocks when no filters are given. Providing body or upstream updates the exact route/resourceType pair. An omitted route matches any URL. Other mocks are preserved. The most recently updated matching mock wins and persists across navigations. Configure before navigating or reloading; inspection shows hit counts and replacement errors. Upstream responses use server-side GET/HEAD fetches. Changes are rejected during a performance trace. Mocks disable the page HTTP cache and intercept every request, affecting measurements. Service workers can bypass mocks. Use remove_network_mock to remove mocks. (requires flag: --categoryNetworkMocks=true)',
|
|
1330
|
+
category: 'Network mocks',
|
|
1331
|
+
args: {
|
|
1332
|
+
pageId: {
|
|
1333
|
+
name: 'pageId',
|
|
1334
|
+
type: 'number',
|
|
1335
|
+
description: 'Targets a specific page by ID.',
|
|
1336
|
+
required: true,
|
|
1337
|
+
positional: true,
|
|
1338
|
+
},
|
|
1339
|
+
route: {
|
|
1340
|
+
name: 'route',
|
|
1341
|
+
type: 'string',
|
|
1342
|
+
description: 'Absolute URLPattern, e.g. https://example.com/app.js or `*://*:*/app.js`. Use `*` for wildcards; omitted query strings match any query. Regex and `:name` groups are rejected. Inspection and removal compare the stored pattern exactly. Omit to inspect/remove all routes or match any URL.',
|
|
1343
|
+
required: false,
|
|
1344
|
+
positional: false,
|
|
1345
|
+
},
|
|
1346
|
+
resourceType: {
|
|
1347
|
+
name: 'resourceType',
|
|
1348
|
+
type: 'string',
|
|
1349
|
+
description: 'Restrict requests and stored mock filters to this resource type. Omit to inspect/remove all types or configure a mock for any type.',
|
|
1350
|
+
required: false,
|
|
1351
|
+
positional: false,
|
|
1352
|
+
enum: [
|
|
1353
|
+
'document',
|
|
1354
|
+
'stylesheet',
|
|
1355
|
+
'image',
|
|
1356
|
+
'media',
|
|
1357
|
+
'font',
|
|
1358
|
+
'script',
|
|
1359
|
+
'texttrack',
|
|
1360
|
+
'xhr',
|
|
1361
|
+
'fetch',
|
|
1362
|
+
'prefetch',
|
|
1363
|
+
'eventsource',
|
|
1364
|
+
'manifest',
|
|
1365
|
+
'signedexchange',
|
|
1366
|
+
'ping',
|
|
1367
|
+
'cspviolationreport',
|
|
1368
|
+
'preflight',
|
|
1369
|
+
'fedcm',
|
|
1370
|
+
'other',
|
|
1371
|
+
],
|
|
1372
|
+
},
|
|
1373
|
+
body: {
|
|
1374
|
+
name: 'body',
|
|
1375
|
+
type: 'string',
|
|
1376
|
+
description: 'Local response body file, revalidated and reread for every request. Content-Type follows its extension. Mutually exclusive with upstream.',
|
|
1377
|
+
required: false,
|
|
1378
|
+
positional: false,
|
|
1379
|
+
},
|
|
1380
|
+
upstream: {
|
|
1381
|
+
name: 'upstream',
|
|
1382
|
+
type: 'string',
|
|
1383
|
+
description: 'Absolute HTTP(S) replacement URL for GET/HEAD requests. URL allowlists and blocklists apply to this URL and every redirect. Mutually exclusive with body.',
|
|
1384
|
+
required: false,
|
|
1385
|
+
positional: false,
|
|
1386
|
+
},
|
|
1387
|
+
},
|
|
1388
|
+
},
|
|
1257
1389
|
navigate_page: {
|
|
1258
1390
|
description: 'Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.',
|
|
1259
1391
|
category: 'Navigation automation',
|
|
@@ -1402,7 +1534,7 @@ export const commands = {
|
|
|
1402
1534
|
ignoreCache: {
|
|
1403
1535
|
name: 'ignoreCache',
|
|
1404
1536
|
type: 'boolean',
|
|
1405
|
-
description: 'Whether to bypass the HTTP cache when reloading the page, to measure a cold page load. Only applies if reload is true.',
|
|
1537
|
+
description: 'Whether to bypass the HTTP cache when reloading the page, to measure a cold page load. Only applies if reload is true. Active network mocks always disable the page HTTP cache.',
|
|
1406
1538
|
required: false,
|
|
1407
1539
|
positional: false,
|
|
1408
1540
|
},
|
|
@@ -1436,7 +1568,7 @@ export const commands = {
|
|
|
1436
1568
|
},
|
|
1437
1569
|
},
|
|
1438
1570
|
press_key: {
|
|
1439
|
-
description: 'Press a key or key combination. Use this when other input methods like fill() cannot be used (e.g., keyboard shortcuts, navigation keys, or special key combinations).',
|
|
1571
|
+
description: 'Press a key or key combination. Use this when other input methods like fill() cannot be used (e.g., keyboard shortcuts, navigation keys, or special key combinations). Note: On macOS, native <select> elements cannot be operated with ArrowDown/Enter via press_key; use fill() on the combobox or click() on the option instead.',
|
|
1440
1572
|
category: 'Input automation',
|
|
1441
1573
|
args: {
|
|
1442
1574
|
pageId: {
|
|
@@ -1526,16 +1658,18 @@ export const commands = {
|
|
|
1526
1658
|
pageIdx: {
|
|
1527
1659
|
name: 'pageIdx',
|
|
1528
1660
|
type: 'integer',
|
|
1529
|
-
description: 'The page index
|
|
1661
|
+
description: 'The zero-based page index. Defaults to 0 (the first page).',
|
|
1530
1662
|
required: false,
|
|
1531
1663
|
positional: false,
|
|
1664
|
+
default: 0,
|
|
1532
1665
|
},
|
|
1533
1666
|
pageSize: {
|
|
1534
1667
|
name: 'pageSize',
|
|
1535
1668
|
type: 'integer',
|
|
1536
|
-
description: 'The page
|
|
1669
|
+
description: 'The maximum number of items to return per page. Defaults to 50.',
|
|
1537
1670
|
required: false,
|
|
1538
1671
|
positional: false,
|
|
1672
|
+
default: 50,
|
|
1539
1673
|
},
|
|
1540
1674
|
maxNameLength: {
|
|
1541
1675
|
name: 'maxNameLength',
|
|
@@ -1559,6 +1693,53 @@ export const commands = {
|
|
|
1559
1693
|
},
|
|
1560
1694
|
},
|
|
1561
1695
|
},
|
|
1696
|
+
remove_network_mock: {
|
|
1697
|
+
description: 'Remove network mocks matching the supplied stored route and/or resource type. Route patterns are compared exactly, not applied as wildcards to other patterns. Omit both filters to remove all mocks for the page. Removing the last mock restores the HTTP cache and stops interception. Changes are rejected during a performance trace. (requires flag: --categoryNetworkMocks=true)',
|
|
1698
|
+
category: 'Network mocks',
|
|
1699
|
+
args: {
|
|
1700
|
+
pageId: {
|
|
1701
|
+
name: 'pageId',
|
|
1702
|
+
type: 'number',
|
|
1703
|
+
description: 'Targets a specific page by ID.',
|
|
1704
|
+
required: true,
|
|
1705
|
+
positional: true,
|
|
1706
|
+
},
|
|
1707
|
+
route: {
|
|
1708
|
+
name: 'route',
|
|
1709
|
+
type: 'string',
|
|
1710
|
+
description: 'Absolute URLPattern, e.g. https://example.com/app.js or `*://*:*/app.js`. Use `*` for wildcards; omitted query strings match any query. Regex and `:name` groups are rejected. Inspection and removal compare the stored pattern exactly. Omit to inspect/remove all routes or match any URL.',
|
|
1711
|
+
required: false,
|
|
1712
|
+
positional: false,
|
|
1713
|
+
},
|
|
1714
|
+
resourceType: {
|
|
1715
|
+
name: 'resourceType',
|
|
1716
|
+
type: 'string',
|
|
1717
|
+
description: 'Restrict requests and stored mock filters to this resource type. Omit to inspect/remove all types or configure a mock for any type.',
|
|
1718
|
+
required: false,
|
|
1719
|
+
positional: false,
|
|
1720
|
+
enum: [
|
|
1721
|
+
'document',
|
|
1722
|
+
'stylesheet',
|
|
1723
|
+
'image',
|
|
1724
|
+
'media',
|
|
1725
|
+
'font',
|
|
1726
|
+
'script',
|
|
1727
|
+
'texttrack',
|
|
1728
|
+
'xhr',
|
|
1729
|
+
'fetch',
|
|
1730
|
+
'prefetch',
|
|
1731
|
+
'eventsource',
|
|
1732
|
+
'manifest',
|
|
1733
|
+
'signedexchange',
|
|
1734
|
+
'ping',
|
|
1735
|
+
'cspviolationreport',
|
|
1736
|
+
'preflight',
|
|
1737
|
+
'fedcm',
|
|
1738
|
+
'other',
|
|
1739
|
+
],
|
|
1740
|
+
},
|
|
1741
|
+
},
|
|
1742
|
+
},
|
|
1562
1743
|
resize_page: {
|
|
1563
1744
|
description: "Resizes the page's window so that the page has specified dimension",
|
|
1564
1745
|
category: 'Emulation',
|
|
@@ -1639,6 +1820,26 @@ export const commands = {
|
|
|
1639
1820
|
},
|
|
1640
1821
|
},
|
|
1641
1822
|
},
|
|
1823
|
+
set_logpoints: {
|
|
1824
|
+
description: 'Set the complete set of logpoints of the selected page: logpoints not in the list are removed, new ones are added, and an empty list removes all. A logpoint logs expressions to the console every time a line executes, without pausing or changing the source, like logpoints in the DevTools Sources panel. Locations are script URLs or original source files resolved through source maps (not available with --no-source-maps; scripts in workers and out-of-process iframes are not supported). A location in a generated script moves to its original source line when a source map covers it, and locations on the same line become one logpoint with the last expression. Output appears in list_console_messages; an expression that throws produces an error message without text. Logpoints survive reloads and navigations until removed or the page is closed. The response lists the resulting logpoints and where they are bound.',
|
|
1825
|
+
category: 'Debugging',
|
|
1826
|
+
args: {
|
|
1827
|
+
pageId: {
|
|
1828
|
+
name: 'pageId',
|
|
1829
|
+
type: 'number',
|
|
1830
|
+
description: 'Targets a specific page by ID.',
|
|
1831
|
+
required: true,
|
|
1832
|
+
positional: true,
|
|
1833
|
+
},
|
|
1834
|
+
logpoints: {
|
|
1835
|
+
name: 'logpoints',
|
|
1836
|
+
type: 'array',
|
|
1837
|
+
description: 'Logpoints formatted as <url>:<lineNumber>[:<columnNumber>] <expression>. The url is a script URL or the path of an original source file from a source map, exact or as a path suffix (e.g. "src/app.ts"). Line and column numbers are 1-based in the coordinates of the url; a line without executable code moves to the next possible location. The expression is evaluated like console.log() arguments in the scope of the location, where local variables are accessible by their original names, and runs before the line executes, so a variable declared on that line is not set yet. list_console_messages shows objects as [object Object]: read them with get_console_message, or log JSON.stringify(value) for plain data. Example: "src/cart.ts:42 \'cart total:\', cart.total, cart.items.length". Pass an empty array to remove all logpoints.',
|
|
1838
|
+
required: true,
|
|
1839
|
+
positional: true,
|
|
1840
|
+
},
|
|
1841
|
+
},
|
|
1842
|
+
},
|
|
1642
1843
|
take_heapsnapshot: {
|
|
1643
1844
|
description: 'Capture a heap snapshot of the target page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.',
|
|
1644
1845
|
category: 'Memory',
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import { DEFAULT_MAX_NAVIGATION_SAVED } from '../collectors/constants.js';
|
|
6
7
|
import os from 'node:os';
|
|
7
8
|
import path from 'node:path';
|
|
8
|
-
import { getCategoryOptions } from './category-options.js';
|
|
9
|
+
import { getCategoryOptions, } from './category-options.js';
|
|
9
10
|
import { getBrowserOptions } from './browser-options.js';
|
|
10
|
-
import { puppeteerOptions } from './puppeteer-options.js';
|
|
11
|
+
import { puppeteerOptions, } from './puppeteer-options.js';
|
|
11
12
|
import { toolOptions } from './tool-options.js';
|
|
12
13
|
export const DEFAULT_FILESYSTEM_ROOT = [os.tmpdir()];
|
|
14
|
+
// Each retained navigation can hold up to 1,000 network requests and 10,000
|
|
15
|
+
// console messages, so the history is capped to avoid running out of memory.
|
|
16
|
+
export const MAX_NAVIGATION_SAVED_LIMIT = 25;
|
|
13
17
|
export const mcpOptions = {
|
|
14
18
|
...getCategoryOptions(),
|
|
15
19
|
...getBrowserOptions(),
|
|
@@ -124,7 +128,7 @@ export const mcpOptions = {
|
|
|
124
128
|
javascriptEvaluation: {
|
|
125
129
|
type: 'boolean',
|
|
126
130
|
default: true,
|
|
127
|
-
describe: 'Set to false to disable the server entry points for evaluating caller-provided JavaScript: evaluation tools (evaluate_script and slim evaluate) are disabled, the initScript parameter in navigate_page is turned off, and navigating to javascript:, data:, or vbscript: URLs is disallowed. This is not a JavaScript sandbox: page scripts and JavaScript triggered through other permitted browser interactions (e.g. clicks or typing) still run. If --experimentalDevtools is also enabled, the DevTools UI, including the Console that evaluates code in the inspected page, can be automated and is not restricted by this option. The client remains responsible for validating tool calls and parameters.',
|
|
131
|
+
describe: 'Set to false to disable the server entry points for evaluating caller-provided JavaScript: evaluation tools (evaluate_script, set_logpoints, and slim evaluate) are disabled, the initScript parameter in navigate_page is turned off, and navigating to javascript:, data:, or vbscript: URLs is disallowed. This is not a JavaScript sandbox: page scripts and JavaScript triggered through other permitted browser interactions (e.g. clicks or typing) still run. If --experimentalDevtools is also enabled, the DevTools UI, including the Console that evaluates code in the inspected page, can be automated and is not restricted by this option. The client remains responsible for validating tool calls and parameters.',
|
|
128
132
|
reloadable: true,
|
|
129
133
|
},
|
|
130
134
|
fileNavigations: {
|
|
@@ -139,6 +143,22 @@ export const mcpOptions = {
|
|
|
139
143
|
describe: 'Whether to enable source maps in DevTools. Use --no-source-maps to disable.',
|
|
140
144
|
reloadable: true,
|
|
141
145
|
},
|
|
146
|
+
maxNavigationSaved: {
|
|
147
|
+
type: 'number',
|
|
148
|
+
default: DEFAULT_MAX_NAVIGATION_SAVED,
|
|
149
|
+
describe: `Number of navigations (including the current one) for which network requests and console messages are retained per page. Must be between 1 and ${MAX_NAVIGATION_SAVED_LIMIT}. For earlier navigations, request URLs, status codes, and request and response headers are retained, which is sufficient to trace redirect hops, but response bodies are generally no longer available.`,
|
|
150
|
+
coerce: (value) => {
|
|
151
|
+
if (value === undefined) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (!Number.isInteger(value) ||
|
|
155
|
+
value <= 0 ||
|
|
156
|
+
value > MAX_NAVIGATION_SAVED_LIMIT) {
|
|
157
|
+
throw new Error(`Invalid maxNavigationSaved ${value}. Expected an integer between 1 and ${MAX_NAVIGATION_SAVED_LIMIT}.`);
|
|
158
|
+
}
|
|
159
|
+
return value;
|
|
160
|
+
},
|
|
161
|
+
},
|
|
142
162
|
clearcutEndpoint: {
|
|
143
163
|
type: 'string',
|
|
144
164
|
hidden: true,
|
|
@@ -202,43 +222,43 @@ export const mcpOptions = {
|
|
|
202
222
|
return path.resolve(configPath);
|
|
203
223
|
},
|
|
204
224
|
},
|
|
225
|
+
watchConfig: {
|
|
226
|
+
type: 'boolean',
|
|
227
|
+
default: false,
|
|
228
|
+
describe: 'Watch the config file for changes and apply them without restarting. Tools (except --categoryExtensions) are enabled, disabled and updated on the fly; options used to launch or connect to the browser still require a restart.',
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
export const mcpOptionsForViaCli = {
|
|
232
|
+
...mcpOptions,
|
|
233
|
+
headless: {
|
|
234
|
+
...mcpOptions.headless,
|
|
235
|
+
default: true,
|
|
236
|
+
},
|
|
237
|
+
memoryDebugging: {
|
|
238
|
+
...mcpOptions.memoryDebugging,
|
|
239
|
+
default: true,
|
|
240
|
+
},
|
|
241
|
+
categoryExtensions: {
|
|
242
|
+
...mcpOptions.categoryExtensions,
|
|
243
|
+
defaultDescription: 'true unless autoConnect, browserUrl or wsEndpoint is set',
|
|
244
|
+
},
|
|
245
|
+
experimentalStructuredContent: {
|
|
246
|
+
...mcpOptions.experimentalStructuredContent,
|
|
247
|
+
default: true,
|
|
248
|
+
},
|
|
249
|
+
isolated: {
|
|
250
|
+
...mcpOptions.isolated,
|
|
251
|
+
description: 'If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to true unless userDataDir is provided.',
|
|
252
|
+
defaultDescription: 'true unless userDataDir, autoConnect, browserUrl or wsEndpoint is set',
|
|
253
|
+
},
|
|
205
254
|
};
|
|
206
|
-
export function getMcpOptionsForViaCli() {
|
|
207
|
-
if (!('default' in mcpOptions.headless)) {
|
|
208
|
-
throw new Error('headless cli option unexpectedly does not have a default');
|
|
209
|
-
}
|
|
210
|
-
if (!('default' in mcpOptions.experimentalStructuredContent)) {
|
|
211
|
-
throw new Error('experimentalStructuredContent cli option unexpectedly does not have a default');
|
|
212
|
-
}
|
|
213
|
-
return {
|
|
214
|
-
...mcpOptions,
|
|
215
|
-
headless: {
|
|
216
|
-
...mcpOptions.headless,
|
|
217
|
-
default: true,
|
|
218
|
-
},
|
|
219
|
-
memoryDebugging: {
|
|
220
|
-
...mcpOptions.memoryDebugging,
|
|
221
|
-
default: true,
|
|
222
|
-
},
|
|
223
|
-
categoryExtensions: {
|
|
224
|
-
...mcpOptions.categoryExtensions,
|
|
225
|
-
defaultDescription: 'true unless autoConnect, browserUrl or wsEndpoint is set',
|
|
226
|
-
},
|
|
227
|
-
experimentalStructuredContent: {
|
|
228
|
-
...mcpOptions.experimentalStructuredContent,
|
|
229
|
-
default: true,
|
|
230
|
-
},
|
|
231
|
-
isolated: {
|
|
232
|
-
...mcpOptions.isolated,
|
|
233
|
-
description: 'If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to true unless userDataDir is provided.',
|
|
234
|
-
defaultDescription: 'true unless userDataDir, autoConnect, browserUrl or wsEndpoint is set',
|
|
235
|
-
},
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
255
|
export function getCliOptions() {
|
|
239
|
-
const options = withoutDefaults(
|
|
256
|
+
const options = withoutDefaults(mcpOptionsForViaCli);
|
|
240
257
|
// Missing CLI serialization.
|
|
241
258
|
delete options.viewport;
|
|
259
|
+
// The CLI is generated for the full mode with pageId routing, not slim mode.
|
|
260
|
+
delete options.slim;
|
|
261
|
+
delete options.pageIdRouting;
|
|
242
262
|
// Change the defaults for the CLI.
|
|
243
263
|
delete options.experimentalStructuredContent;
|
|
244
264
|
delete options.experimentalInteropTools;
|
|
@@ -332,6 +352,12 @@ export function withoutDefaults(options) {
|
|
|
332
352
|
}
|
|
333
353
|
return result;
|
|
334
354
|
}
|
|
355
|
+
export function stripYargsPositionalArgs(parsed) {
|
|
356
|
+
const copy = { ...parsed };
|
|
357
|
+
delete copy._;
|
|
358
|
+
delete copy.$0;
|
|
359
|
+
return copy;
|
|
360
|
+
}
|
|
335
361
|
export function isReloadableOption(name) {
|
|
336
362
|
const option = mcpOptions[name];
|
|
337
363
|
return option.reloadable === true;
|
|
@@ -37,7 +37,8 @@ export const puppeteerOptions = {
|
|
|
37
37
|
blockedUrlPattern: {
|
|
38
38
|
type: 'array',
|
|
39
39
|
string: true,
|
|
40
|
-
|
|
40
|
+
reloadable: true,
|
|
41
|
+
describe: "Restricts browser's network access by blocking specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Silently detaches from targets with blocked URLs upon connection, and blocks runtime requests (including navigations and subresources); targets already open when patterns are updated via --watchConfig remain attached. Accepts an array of patterns. A pattern that uses a regexp group, a named group (`:name`), or a partial IPv4 wildcard (for example `(127\\.\\d+\\.\\d+\\.\\d+)`, `*://127.0.0.1::port/*`, or `*://127.0.0.*/*`) is rejected, because it is not enforced on redirects or subresources; use an exact value or a `*` wildcard instead. Patterns follow URL Pattern defaults: an omitted port matches only the scheme's default port (for example, `https://internal.corp/*` does not match `https://internal.corp:8443/`; use `https://internal.corp:*/*` to match any port), and the hostname must match exactly (a trailing-dot host such as `internal.corp.` is a different hostname).",
|
|
41
42
|
coerce: (arg) => {
|
|
42
43
|
if (arg === undefined || arg.length === 0) {
|
|
43
44
|
return undefined;
|
|
@@ -49,7 +50,8 @@ export const puppeteerOptions = {
|
|
|
49
50
|
allowedUrlPattern: {
|
|
50
51
|
type: 'array',
|
|
51
52
|
string: true,
|
|
52
|
-
|
|
53
|
+
reloadable: true,
|
|
54
|
+
describe: "Restricts browser's network access by allowing only specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Requires Chrome 149+. Silently detaches from targets with unallowed URLs upon connection, and blocks runtime requests (including navigations and subresources); targets already open when patterns are updated via --watchConfig remain attached. Accepts an array of patterns. A pattern that uses a regexp group, a named group (`:name`), or a partial IPv4 wildcard (for example `(127\\.\\d+\\.\\d+\\.\\d+)`, `*://127.0.0.1::port/*`, or `*://127.0.0.*/*`) is rejected, because it is not enforced on redirects or subresources; use an exact value or a `*` wildcard instead. Patterns follow URL Pattern defaults: an omitted port matches only the scheme's default port (for example, `https://internal.corp/*` does not match `https://internal.corp:8443/`; use `https://internal.corp:*/*` to match any port), and the hostname must match exactly (a trailing-dot host such as `internal.corp.` is a different hostname).",
|
|
53
55
|
coerce: (arg) => {
|
|
54
56
|
if (arg === undefined) {
|
|
55
57
|
return undefined;
|
|
@@ -7,9 +7,9 @@ import { spawn } from 'node:child_process';
|
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import net from 'node:net';
|
|
9
9
|
import path from 'node:path';
|
|
10
|
-
import { PipeTransport } from '../third_party/
|
|
10
|
+
import { PipeTransport } from '../third_party/cli.js';
|
|
11
11
|
import { getTempFilePath } from '../utils/files.js';
|
|
12
|
-
import { logger, puppeteerLogger } from '../utils/logger.js';
|
|
12
|
+
import { logger, puppeteerLogger, redactDaemonArgsForLogging, } from '../utils/logger.js';
|
|
13
13
|
import { DAEMON_SCRIPT_PATH, getDaemonPid, getSocketPath, getPidFilePath, isDaemonRunning, } from './utils.js';
|
|
14
14
|
const FILE_TIMEOUT = 10_000;
|
|
15
15
|
const READY_CHECK_INTERVAL = 100;
|
|
@@ -89,7 +89,7 @@ export async function startDaemon(mcpArgs = [], sessionId) {
|
|
|
89
89
|
}
|
|
90
90
|
fs.unlinkSync(pidFilePath);
|
|
91
91
|
}
|
|
92
|
-
logger?.('Starting daemon...', ...mcpArgs);
|
|
92
|
+
logger?.('Starting daemon...', ...redactDaemonArgsForLogging(mcpArgs));
|
|
93
93
|
const child = spawn(process.execPath, [DAEMON_SCRIPT_PATH, ...mcpArgs], {
|
|
94
94
|
detached: true,
|
|
95
95
|
stdio: 'ignore',
|
|
@@ -103,15 +103,19 @@ let server = null;
|
|
|
103
103
|
async function setupMCPServer() {
|
|
104
104
|
logger?.(`Starting Chrome DevTools MCP Server v${VERSION}`);
|
|
105
105
|
const configParser = new ConfigParser(VERSION);
|
|
106
|
-
const
|
|
106
|
+
const serverConfig = configParser.parseConfig();
|
|
107
|
+
const args = serverConfig.resolved;
|
|
107
108
|
const logFile = args.logFile ? saveLogsToFile(args.logFile) : undefined;
|
|
108
|
-
const browserManager = new BrowserManager(
|
|
109
|
+
const browserManager = new BrowserManager(serverConfig, {
|
|
109
110
|
logFile,
|
|
110
111
|
});
|
|
111
|
-
mcpServer = await McpServer.from(
|
|
112
|
+
mcpServer = await McpServer.from(serverConfig, {
|
|
112
113
|
browserManager,
|
|
113
114
|
logFile,
|
|
114
115
|
});
|
|
116
|
+
if (args.watchConfig) {
|
|
117
|
+
mcpServer.watchConfig();
|
|
118
|
+
}
|
|
115
119
|
ClearcutLogger.get()?.setClientName(DAEMON_CLIENT_NAME);
|
|
116
120
|
void ClearcutLogger.get()?.logDailyActiveIfNeeded();
|
|
117
121
|
void ClearcutLogger.get()?.logServerStart(computeFlagUsage(args, mcpOptions));
|
|
@@ -161,7 +161,8 @@ export function serializeArgs(options, argv) {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
164
|
-
|
|
164
|
+
const serializedValue = typeof value === 'object' ? JSON.stringify(value) : String(value);
|
|
165
|
+
args.push(`--${kebabKey}=${serializedValue}`);
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
return args;
|