@yezack/chrome-devtools-mcp-108 0.0.0-stage → 1.10.2
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/FORK-NOTICE.md +45 -0
- package/LICENSE +202 -0
- package/README.md +45 -2
- package/build/src/BrowserManager.js +401 -0
- package/build/src/McpContext.js +642 -0
- package/build/src/McpPage.js +850 -0
- package/build/src/McpResponse.js +1086 -0
- package/build/src/SlimMcpResponse.js +19 -0
- package/build/src/TextSnapshot.js +315 -0
- package/build/src/ToolHandler.js +322 -0
- package/build/src/bin/check-latest-version.js +51 -0
- package/build/src/bin/chrome-devtools-mcp-main.js +77 -0
- package/build/src/bin/chrome-devtools-mcp.js +23 -0
- package/build/src/bin/chrome-devtools.js +222 -0
- package/build/src/collectors/PageCollector.js +291 -0
- package/build/src/collectors/ServiceWorkerCollector.js +171 -0
- package/build/src/config/browser-options.js +125 -0
- package/build/src/config/category-options.js +89 -0
- package/build/src/config/cli-commands.js +26 -0
- package/build/src/config/cli-options.js +1473 -0
- package/build/src/config/mcp-options.js +417 -0
- package/build/src/daemon/client.js +221 -0
- package/build/src/daemon/daemon.js +266 -0
- package/build/src/daemon/types.js +7 -0
- package/build/src/daemon/utils.js +136 -0
- package/build/src/devtools/DevToolsCommentBridge.js +91 -0
- package/build/src/devtools/DevtoolsUtils.js +307 -0
- package/build/src/devtools/McpHostBindingAdapter.js +165 -0
- package/build/src/devtools/issueDescriptions.js +42 -0
- package/build/src/formatters/CommentFormatter.js +82 -0
- package/build/src/formatters/ConsoleFormatter.js +321 -0
- package/build/src/formatters/CssFormatter.js +812 -0
- package/build/src/formatters/HeapSnapshotFormatter.js +185 -0
- package/build/src/formatters/IssueFormatter.js +193 -0
- package/build/src/formatters/NetworkFormatter.js +241 -0
- package/build/src/formatters/SnapshotFormatter.js +135 -0
- package/build/src/index.js +237 -0
- package/build/src/processors/ChunkedTraceParser.js +361 -0
- package/build/src/processors/HeapSnapshotManager.js +270 -0
- package/build/src/processors/PerformanceTrace.js +132 -0
- package/build/src/telemetry/ClearcutLogger.js +242 -0
- package/build/src/telemetry/WatchdogClient.js +61 -0
- package/build/src/telemetry/errors.js +18 -0
- package/build/src/telemetry/flagUtils.js +90 -0
- package/build/src/telemetry/metricsRegistry.js +85 -0
- package/build/src/telemetry/persistence.js +82 -0
- package/build/src/telemetry/transformation.js +233 -0
- package/build/src/telemetry/types.js +36 -0
- package/build/src/telemetry/watchdog/ClearcutSender.js +205 -0
- package/build/src/telemetry/watchdog/main.js +128 -0
- package/build/src/third_party/THIRD_PARTY_NOTICES +4077 -0
- package/build/src/third_party/bundled-packages.json +12 -0
- package/build/src/third_party/devtools-formatter-worker.js +15494 -0
- package/build/src/third_party/devtools-heap-snapshot-worker.js +10979 -0
- package/build/src/third_party/index.js +200978 -0
- package/build/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/build/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/build/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/build/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
- package/build/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/build/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
- package/build/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/build/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/build/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
- package/build/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/build/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/build/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/build/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/build/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/build/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
- package/build/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/build/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +4 -0
- package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +4 -0
- package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/build/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
- package/build/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
- package/build/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
- package/build/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/build/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
- package/build/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/build/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/build/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/build/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
- package/build/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
- package/build/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
- package/build/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +9 -0
- package/build/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
- package/build/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
- package/build/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/build/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/build/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
- package/build/src/third_party/issue-descriptions/deprecation.md +3 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/build/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/build/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/build/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/build/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/build/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/build/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/build/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/build/src/third_party/issue-descriptions/heavyAd.md +10 -0
- package/build/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +7 -0
- package/build/src/third_party/issue-descriptions/mixedContent.md +5 -0
- package/build/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
- package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/build/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/build/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/build/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
- package/build/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
- package/build/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/build/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/build/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/build/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
- package/build/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/build/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
- package/build/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/build/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
- package/build/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/build/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
- package/build/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/build/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
- package/build/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
- package/build/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/build/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/build/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/build/src/third_party/issue-descriptions/webInstallManifestMissingId.md +3 -0
- package/build/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +3 -0
- package/build/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +3 -0
- package/build/src/third_party/issue-descriptions/webInstallNoManifest.md +3 -0
- package/build/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +3 -0
- package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +58435 -0
- package/build/src/tools/ToolDefinition.js +80 -0
- package/build/src/tools/categories.js +33 -0
- package/build/src/tools/comments.js +169 -0
- package/build/src/tools/console.js +104 -0
- package/build/src/tools/css.js +45 -0
- package/build/src/tools/emulation.js +84 -0
- package/build/src/tools/extensions.js +103 -0
- package/build/src/tools/input.js +652 -0
- package/build/src/tools/lighthouse.js +149 -0
- package/build/src/tools/memory.js +424 -0
- package/build/src/tools/network.js +128 -0
- package/build/src/tools/pages.js +363 -0
- package/build/src/tools/performance.js +212 -0
- package/build/src/tools/pwa.js +128 -0
- package/build/src/tools/screencast.js +119 -0
- package/build/src/tools/screenshot.js +277 -0
- package/build/src/tools/script.js +232 -0
- package/build/src/tools/slim/tools.js +96 -0
- package/build/src/tools/snapshot.js +63 -0
- package/build/src/tools/thirdPartyDeveloper.js +85 -0
- package/build/src/tools/tools.js +55 -0
- package/build/src/tools/webmcp.js +66 -0
- package/build/src/types.js +10 -0
- package/build/src/utils/WaitForHelper.js +316 -0
- package/build/src/utils/bytes.js +105 -0
- package/build/src/utils/check-for-updates.js +75 -0
- package/build/src/utils/files.js +57 -0
- package/build/src/utils/id.js +16 -0
- package/build/src/utils/keyboard.js +297 -0
- package/build/src/utils/logger.js +52 -0
- package/build/src/utils/pagination.js +50 -0
- package/build/src/utils/polyfill.js +11 -0
- package/build/src/utils/url.js +116 -0
- package/build/src/version.js +10 -0
- package/package.json +41 -4
- package/skills/a11y-debugging/SKILL.md +91 -0
- package/skills/a11y-debugging/references/a11y-snippets.md +92 -0
- package/skills/chrome-devtools/SKILL.md +74 -0
- package/skills/chrome-devtools-cli/SKILL.md +194 -0
- package/skills/chrome-devtools-cli/references/installation.md +14 -0
- package/skills/cookie-debugging/SKILL.md +149 -0
- package/skills/debug-optimize-lcp/SKILL.md +121 -0
- package/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
- package/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
- package/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
- package/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
- package/skills/memory-leak-debugging/SKILL.md +58 -0
- package/skills/memory-leak-debugging/references/common-leaks.md +33 -0
- package/skills/troubleshooting/SKILL.md +99 -0
|
@@ -0,0 +1,1473 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export const commands = {
|
|
7
|
+
click: {
|
|
8
|
+
description: 'Clicks on the provided element',
|
|
9
|
+
category: 'Input automation',
|
|
10
|
+
args: {
|
|
11
|
+
pageId: {
|
|
12
|
+
name: 'pageId',
|
|
13
|
+
type: 'number',
|
|
14
|
+
description: 'Targets a specific page by ID.',
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
uid: {
|
|
18
|
+
name: 'uid',
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'The uid of an element on the page from the page content snapshot',
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
23
|
+
dblClick: {
|
|
24
|
+
name: 'dblClick',
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
description: 'Set to true for double clicks. Default is false.',
|
|
27
|
+
required: false,
|
|
28
|
+
},
|
|
29
|
+
includeSnapshot: {
|
|
30
|
+
name: 'includeSnapshot',
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
description: 'Whether to include a snapshot in the response. Default is false.',
|
|
33
|
+
required: false,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
click_at: {
|
|
38
|
+
description: 'Clicks at the provided coordinates (requires flag: --experimentalVision=true)',
|
|
39
|
+
category: 'Input automation',
|
|
40
|
+
args: {
|
|
41
|
+
pageId: {
|
|
42
|
+
name: 'pageId',
|
|
43
|
+
type: 'number',
|
|
44
|
+
description: 'Targets a specific page by ID.',
|
|
45
|
+
required: true,
|
|
46
|
+
},
|
|
47
|
+
x: {
|
|
48
|
+
name: 'x',
|
|
49
|
+
type: 'number',
|
|
50
|
+
description: 'The x coordinate',
|
|
51
|
+
required: true,
|
|
52
|
+
},
|
|
53
|
+
y: {
|
|
54
|
+
name: 'y',
|
|
55
|
+
type: 'number',
|
|
56
|
+
description: 'The y coordinate',
|
|
57
|
+
required: true,
|
|
58
|
+
},
|
|
59
|
+
dblClick: {
|
|
60
|
+
name: 'dblClick',
|
|
61
|
+
type: 'boolean',
|
|
62
|
+
description: 'Set to true for double clicks. Default is false.',
|
|
63
|
+
required: false,
|
|
64
|
+
},
|
|
65
|
+
includeSnapshot: {
|
|
66
|
+
name: 'includeSnapshot',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
description: 'Whether to include a snapshot in the response. Default is false.',
|
|
69
|
+
required: false,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
close_heapsnapshot: {
|
|
74
|
+
description: 'Closes a previously loaded memory heapsnapshot, freeing its memory. (requires flag: --memoryDebugging=true)',
|
|
75
|
+
category: 'Memory',
|
|
76
|
+
args: {
|
|
77
|
+
filePath: {
|
|
78
|
+
name: 'filePath',
|
|
79
|
+
type: 'string',
|
|
80
|
+
description: 'A path to the .heapsnapshot file to close.',
|
|
81
|
+
required: true,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
close_page: {
|
|
86
|
+
description: 'Closes the page by its index. The last open page cannot be closed.',
|
|
87
|
+
category: 'Navigation automation',
|
|
88
|
+
args: {
|
|
89
|
+
pageId: {
|
|
90
|
+
name: 'pageId',
|
|
91
|
+
type: 'number',
|
|
92
|
+
description: 'The ID of the page to close. Call list_pages to list pages.',
|
|
93
|
+
required: true,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
compare_heapsnapshots: {
|
|
98
|
+
description: 'Loads two memory heapsnapshots and returns the comparison. If classIndex is provided, returns detailed diff for that class, otherwise returns summary diff. (requires flag: --memoryDebugging=true)',
|
|
99
|
+
category: 'Memory',
|
|
100
|
+
args: {
|
|
101
|
+
baseFilePath: {
|
|
102
|
+
name: 'baseFilePath',
|
|
103
|
+
type: 'string',
|
|
104
|
+
description: 'A path to the base .heapsnapshot file (earlier snapshot).',
|
|
105
|
+
required: true,
|
|
106
|
+
},
|
|
107
|
+
currentFilePath: {
|
|
108
|
+
name: 'currentFilePath',
|
|
109
|
+
type: 'string',
|
|
110
|
+
description: 'A path to the current .heapsnapshot file (later snapshot).',
|
|
111
|
+
required: true,
|
|
112
|
+
},
|
|
113
|
+
classIndex: {
|
|
114
|
+
name: 'classIndex',
|
|
115
|
+
type: 'number',
|
|
116
|
+
description: 'Optional 0-based index of the class in the summary list to filter results, showing individual objects.',
|
|
117
|
+
required: false,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
drag: {
|
|
122
|
+
description: 'Drag an element onto another element',
|
|
123
|
+
category: 'Input automation',
|
|
124
|
+
args: {
|
|
125
|
+
pageId: {
|
|
126
|
+
name: 'pageId',
|
|
127
|
+
type: 'number',
|
|
128
|
+
description: 'Targets a specific page by ID.',
|
|
129
|
+
required: true,
|
|
130
|
+
},
|
|
131
|
+
from_uid: {
|
|
132
|
+
name: 'from_uid',
|
|
133
|
+
type: 'string',
|
|
134
|
+
description: 'The uid of the element to drag',
|
|
135
|
+
required: true,
|
|
136
|
+
},
|
|
137
|
+
to_uid: {
|
|
138
|
+
name: 'to_uid',
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'The uid of the element to drop into',
|
|
141
|
+
required: true,
|
|
142
|
+
},
|
|
143
|
+
includeSnapshot: {
|
|
144
|
+
name: 'includeSnapshot',
|
|
145
|
+
type: 'boolean',
|
|
146
|
+
description: 'Whether to include a snapshot in the response. Default is false.',
|
|
147
|
+
required: false,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
emulate: {
|
|
152
|
+
description: 'Emulates various features on the target page.',
|
|
153
|
+
category: 'Emulation',
|
|
154
|
+
args: {
|
|
155
|
+
pageId: {
|
|
156
|
+
name: 'pageId',
|
|
157
|
+
type: 'number',
|
|
158
|
+
description: 'Targets a specific page by ID.',
|
|
159
|
+
required: true,
|
|
160
|
+
},
|
|
161
|
+
networkConditions: {
|
|
162
|
+
name: 'networkConditions',
|
|
163
|
+
type: 'string',
|
|
164
|
+
description: 'Throttle network. Omit to disable throttling.',
|
|
165
|
+
required: false,
|
|
166
|
+
enum: ['Offline', 'Slow 3G', 'Fast 3G', 'Slow 4G', 'Fast 4G'],
|
|
167
|
+
},
|
|
168
|
+
cpuThrottlingRate: {
|
|
169
|
+
name: 'cpuThrottlingRate',
|
|
170
|
+
type: 'number',
|
|
171
|
+
description: 'Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling',
|
|
172
|
+
required: false,
|
|
173
|
+
},
|
|
174
|
+
geolocation: {
|
|
175
|
+
name: 'geolocation',
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: 'Geolocation (`<latitude>,<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override.',
|
|
178
|
+
required: false,
|
|
179
|
+
},
|
|
180
|
+
userAgent: {
|
|
181
|
+
name: 'userAgent',
|
|
182
|
+
type: 'string',
|
|
183
|
+
description: 'User agent to emulate. Set to empty string to clear the user agent override.',
|
|
184
|
+
required: false,
|
|
185
|
+
},
|
|
186
|
+
colorScheme: {
|
|
187
|
+
name: 'colorScheme',
|
|
188
|
+
type: 'string',
|
|
189
|
+
description: 'Emulate the dark or the light mode. Set to "auto" to reset to the default.',
|
|
190
|
+
required: false,
|
|
191
|
+
enum: ['dark', 'light', 'auto'],
|
|
192
|
+
},
|
|
193
|
+
viewport: {
|
|
194
|
+
name: 'viewport',
|
|
195
|
+
type: 'string',
|
|
196
|
+
description: "Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode.",
|
|
197
|
+
required: false,
|
|
198
|
+
},
|
|
199
|
+
extraHttpHeaders: {
|
|
200
|
+
name: 'extraHttpHeaders',
|
|
201
|
+
type: 'string',
|
|
202
|
+
description: 'Extra HTTP headers as a JSON string object, e.g. {"X-Custom": "value", "Authorization": "Bearer token"}. Headers are included into every HTTP request originating from the page and persist across navigations until cleared. Pass an empty string to clear all extra headers.',
|
|
203
|
+
required: false,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
evaluate_script: {
|
|
208
|
+
description: 'Evaluate a JavaScript function inside the target page or service worker. Returns the response as JSON, so returned values have to be JSON-serializable.',
|
|
209
|
+
category: 'Debugging',
|
|
210
|
+
args: {
|
|
211
|
+
pageId: {
|
|
212
|
+
name: 'pageId',
|
|
213
|
+
type: 'number',
|
|
214
|
+
description: 'Targets a specific page by ID. Required when not evaluating in a service worker.',
|
|
215
|
+
required: false,
|
|
216
|
+
},
|
|
217
|
+
function: {
|
|
218
|
+
name: 'function',
|
|
219
|
+
type: 'string',
|
|
220
|
+
description: 'A JavaScript function declaration to be executed by the tool in the target page.\nExample without arguments: `() => document.title` or `async () => await fetch("example.com")`.\nExample with arguments: `(el) => el.innerText`\n',
|
|
221
|
+
required: true,
|
|
222
|
+
},
|
|
223
|
+
args: {
|
|
224
|
+
name: 'args',
|
|
225
|
+
type: 'array',
|
|
226
|
+
description: 'An optional list of arguments to pass to the function.',
|
|
227
|
+
required: false,
|
|
228
|
+
},
|
|
229
|
+
filePath: {
|
|
230
|
+
name: 'filePath',
|
|
231
|
+
type: 'string',
|
|
232
|
+
description: 'The absolute or relative path to a file to save the script output to. If omitted, the output is returned inline.',
|
|
233
|
+
required: false,
|
|
234
|
+
},
|
|
235
|
+
dialogAction: {
|
|
236
|
+
name: 'dialogAction',
|
|
237
|
+
type: 'string',
|
|
238
|
+
description: 'Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept.',
|
|
239
|
+
required: false,
|
|
240
|
+
},
|
|
241
|
+
waitForStableDom: {
|
|
242
|
+
name: 'waitForStableDom',
|
|
243
|
+
type: 'boolean',
|
|
244
|
+
description: 'Whether to wait for the DOM to settle. Pass false if the script only reads data. Defaults to true.',
|
|
245
|
+
required: false,
|
|
246
|
+
},
|
|
247
|
+
serviceWorkerId: {
|
|
248
|
+
name: 'serviceWorkerId',
|
|
249
|
+
type: 'string',
|
|
250
|
+
description: "The optional service worker id to evaluate the script in. If provided, 'pageId' should be omitted. Note: 'args' (element UIDs) cannot be used when evaluating in a service worker.",
|
|
251
|
+
required: false,
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
execute_3p_developer_tool: {
|
|
256
|
+
description: 'Executes a tool exposed by the page. (requires flag: --categoryExperimentalThirdParty=true)',
|
|
257
|
+
category: 'Third-party',
|
|
258
|
+
args: {
|
|
259
|
+
pageId: {
|
|
260
|
+
name: 'pageId',
|
|
261
|
+
type: 'number',
|
|
262
|
+
description: 'Targets a specific page by ID.',
|
|
263
|
+
required: true,
|
|
264
|
+
},
|
|
265
|
+
toolName: {
|
|
266
|
+
name: 'toolName',
|
|
267
|
+
type: 'string',
|
|
268
|
+
description: 'The name of the tool to execute',
|
|
269
|
+
required: true,
|
|
270
|
+
},
|
|
271
|
+
params: {
|
|
272
|
+
name: 'params',
|
|
273
|
+
type: 'string',
|
|
274
|
+
description: 'The JSON-stringified parameters to pass to the tool',
|
|
275
|
+
required: false,
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
execute_webmcp_tool: {
|
|
280
|
+
description: 'Executes a WebMCP tool exposed by the page. (requires flag: --categoryExperimentalWebmcp=true)',
|
|
281
|
+
category: 'WebMCP',
|
|
282
|
+
args: {
|
|
283
|
+
pageId: {
|
|
284
|
+
name: 'pageId',
|
|
285
|
+
type: 'number',
|
|
286
|
+
description: 'Targets a specific page by ID.',
|
|
287
|
+
required: true,
|
|
288
|
+
},
|
|
289
|
+
toolName: {
|
|
290
|
+
name: 'toolName',
|
|
291
|
+
type: 'string',
|
|
292
|
+
description: 'The name of the WebMCP tool to execute',
|
|
293
|
+
required: true,
|
|
294
|
+
},
|
|
295
|
+
input: {
|
|
296
|
+
name: 'input',
|
|
297
|
+
type: 'string',
|
|
298
|
+
description: 'The JSON-stringified parameters to pass to the WebMCP tool',
|
|
299
|
+
required: false,
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
fill: {
|
|
304
|
+
description: 'Type text into an input, text area or select an option from a <select> element.',
|
|
305
|
+
category: 'Input automation',
|
|
306
|
+
args: {
|
|
307
|
+
pageId: {
|
|
308
|
+
name: 'pageId',
|
|
309
|
+
type: 'number',
|
|
310
|
+
description: 'Targets a specific page by ID.',
|
|
311
|
+
required: true,
|
|
312
|
+
},
|
|
313
|
+
uid: {
|
|
314
|
+
name: 'uid',
|
|
315
|
+
type: 'string',
|
|
316
|
+
description: 'The uid of an element on the page from the page content snapshot',
|
|
317
|
+
required: true,
|
|
318
|
+
},
|
|
319
|
+
value: {
|
|
320
|
+
name: 'value',
|
|
321
|
+
type: 'string',
|
|
322
|
+
description: 'The value to fill in. "true" or "false" for checkboxes and toggles, "true" for radio buttons.',
|
|
323
|
+
required: true,
|
|
324
|
+
},
|
|
325
|
+
includeSnapshot: {
|
|
326
|
+
name: 'includeSnapshot',
|
|
327
|
+
type: 'boolean',
|
|
328
|
+
description: 'Whether to include a snapshot in the response. Default is false.',
|
|
329
|
+
required: false,
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
get_console_message: {
|
|
334
|
+
description: 'Gets a console message by its ID. You can get all messages by calling list_console_messages.',
|
|
335
|
+
category: 'Debugging',
|
|
336
|
+
args: {
|
|
337
|
+
pageId: {
|
|
338
|
+
name: 'pageId',
|
|
339
|
+
type: 'number',
|
|
340
|
+
description: 'Targets a specific page by ID.',
|
|
341
|
+
required: true,
|
|
342
|
+
},
|
|
343
|
+
msgid: {
|
|
344
|
+
name: 'msgid',
|
|
345
|
+
type: 'number',
|
|
346
|
+
description: 'The msgid of a console message on the page from the listed console messages',
|
|
347
|
+
required: true,
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
get_css_styles: {
|
|
352
|
+
description: 'Retrieve matched CSS rules, inline styles, inherited styles, and cascade information for an element identified by its UID.\nUse this tool to debug why specific CSS properties are applied, overridden, or conflicting. Results are paginated and return 10 rules per page by default; use pageIdx to page through the remaining rules. Requires a UID from take_snapshot.',
|
|
353
|
+
category: 'Debugging',
|
|
354
|
+
args: {
|
|
355
|
+
pageId: {
|
|
356
|
+
name: 'pageId',
|
|
357
|
+
type: 'number',
|
|
358
|
+
description: 'Targets a specific page by ID.',
|
|
359
|
+
required: true,
|
|
360
|
+
},
|
|
361
|
+
uid: {
|
|
362
|
+
name: 'uid',
|
|
363
|
+
type: 'string',
|
|
364
|
+
description: 'The uid of the element on the page from the page content snapshot to inspect CSS styles for',
|
|
365
|
+
required: true,
|
|
366
|
+
},
|
|
367
|
+
pageSize: {
|
|
368
|
+
name: 'pageSize',
|
|
369
|
+
type: 'integer',
|
|
370
|
+
description: 'Maximum number of CSS rules to return per page. Defaults to 10.',
|
|
371
|
+
required: false,
|
|
372
|
+
default: 10,
|
|
373
|
+
},
|
|
374
|
+
pageIdx: {
|
|
375
|
+
name: 'pageIdx',
|
|
376
|
+
type: 'integer',
|
|
377
|
+
description: 'Page number to return (0-based). Defaults to 0 (the first page).',
|
|
378
|
+
required: false,
|
|
379
|
+
default: 0,
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
get_heapsnapshot_class_nodes: {
|
|
384
|
+
description: 'Loads a memory heapsnapshot and returns instances of a specific class with their IDs. (requires flag: --memoryDebugging=true)',
|
|
385
|
+
category: 'Memory',
|
|
386
|
+
args: {
|
|
387
|
+
filePath: {
|
|
388
|
+
name: 'filePath',
|
|
389
|
+
type: 'string',
|
|
390
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
391
|
+
required: true,
|
|
392
|
+
},
|
|
393
|
+
id: {
|
|
394
|
+
name: 'id',
|
|
395
|
+
type: 'number',
|
|
396
|
+
description: 'The ID for the class, obtained from details.',
|
|
397
|
+
required: true,
|
|
398
|
+
},
|
|
399
|
+
filterName: {
|
|
400
|
+
name: 'filterName',
|
|
401
|
+
type: 'string',
|
|
402
|
+
description: 'An optional filter to apply to the nodes.',
|
|
403
|
+
required: false,
|
|
404
|
+
enum: [
|
|
405
|
+
'objectsRetainedByDetachedDomNodes',
|
|
406
|
+
'objectsRetainedByConsole',
|
|
407
|
+
'objectsRetainedByEventHandlers',
|
|
408
|
+
'objectsRetainedByContexts',
|
|
409
|
+
'sharedNativeContext',
|
|
410
|
+
'noNativeContext',
|
|
411
|
+
'attributedToSpecificNativeContext',
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
objectId: {
|
|
415
|
+
name: 'objectId',
|
|
416
|
+
type: 'number',
|
|
417
|
+
description: 'The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.',
|
|
418
|
+
required: false,
|
|
419
|
+
},
|
|
420
|
+
pageIdx: {
|
|
421
|
+
name: 'pageIdx',
|
|
422
|
+
type: 'number',
|
|
423
|
+
description: 'The page index for pagination.',
|
|
424
|
+
required: false,
|
|
425
|
+
},
|
|
426
|
+
pageSize: {
|
|
427
|
+
name: 'pageSize',
|
|
428
|
+
type: 'number',
|
|
429
|
+
description: 'The page size for pagination.',
|
|
430
|
+
required: false,
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
},
|
|
434
|
+
get_heapsnapshot_details: {
|
|
435
|
+
description: 'Loads a memory heapsnapshot and returns all available information including statistics, static data, and aggregated node information. Supports pagination for aggregates. (requires flag: --memoryDebugging=true)',
|
|
436
|
+
category: 'Memory',
|
|
437
|
+
args: {
|
|
438
|
+
filePath: {
|
|
439
|
+
name: 'filePath',
|
|
440
|
+
type: 'string',
|
|
441
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
442
|
+
required: true,
|
|
443
|
+
},
|
|
444
|
+
filterName: {
|
|
445
|
+
name: 'filterName',
|
|
446
|
+
type: 'string',
|
|
447
|
+
description: 'An optional filter to apply to the aggregates.',
|
|
448
|
+
required: false,
|
|
449
|
+
enum: [
|
|
450
|
+
'objectsRetainedByDetachedDomNodes',
|
|
451
|
+
'objectsRetainedByConsole',
|
|
452
|
+
'objectsRetainedByEventHandlers',
|
|
453
|
+
'objectsRetainedByContexts',
|
|
454
|
+
'sharedNativeContext',
|
|
455
|
+
'noNativeContext',
|
|
456
|
+
'attributedToSpecificNativeContext',
|
|
457
|
+
],
|
|
458
|
+
},
|
|
459
|
+
objectId: {
|
|
460
|
+
name: 'objectId',
|
|
461
|
+
type: 'number',
|
|
462
|
+
description: 'The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.',
|
|
463
|
+
required: false,
|
|
464
|
+
},
|
|
465
|
+
pageIdx: {
|
|
466
|
+
name: 'pageIdx',
|
|
467
|
+
type: 'number',
|
|
468
|
+
description: 'The page index for pagination of aggregates.',
|
|
469
|
+
required: false,
|
|
470
|
+
},
|
|
471
|
+
pageSize: {
|
|
472
|
+
name: 'pageSize',
|
|
473
|
+
type: 'number',
|
|
474
|
+
description: 'The page size for pagination of aggregates.',
|
|
475
|
+
required: false,
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
get_heapsnapshot_dominators: {
|
|
480
|
+
description: 'Loads a memory heapsnapshot and returns the dominator chain for a specific node ID. This helps to identify which objects are keeping the target node alive. (requires flag: --memoryDebugging=true)',
|
|
481
|
+
category: 'Memory',
|
|
482
|
+
args: {
|
|
483
|
+
filePath: {
|
|
484
|
+
name: 'filePath',
|
|
485
|
+
type: 'string',
|
|
486
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
487
|
+
required: true,
|
|
488
|
+
},
|
|
489
|
+
nodeId: {
|
|
490
|
+
name: 'nodeId',
|
|
491
|
+
type: 'number',
|
|
492
|
+
description: 'The node ID to get the dominator chain for.',
|
|
493
|
+
required: true,
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
get_heapsnapshot_duplicate_strings: {
|
|
498
|
+
description: 'Loads a memory heapsnapshot and returns duplicate strings grouped by their value. (requires flag: --memoryDebugging=true)',
|
|
499
|
+
category: 'Memory',
|
|
500
|
+
args: {
|
|
501
|
+
filePath: {
|
|
502
|
+
name: 'filePath',
|
|
503
|
+
type: 'string',
|
|
504
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
505
|
+
required: true,
|
|
506
|
+
},
|
|
507
|
+
pageIdx: {
|
|
508
|
+
name: 'pageIdx',
|
|
509
|
+
type: 'number',
|
|
510
|
+
description: 'The page index for pagination.',
|
|
511
|
+
required: false,
|
|
512
|
+
},
|
|
513
|
+
pageSize: {
|
|
514
|
+
name: 'pageSize',
|
|
515
|
+
type: 'number',
|
|
516
|
+
description: 'The page size for pagination.',
|
|
517
|
+
required: false,
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
get_heapsnapshot_edges: {
|
|
522
|
+
description: 'Loads a memory heapsnapshot and returns outgoing edges (references) for a specific node ID. (requires flag: --memoryDebugging=true)',
|
|
523
|
+
category: 'Memory',
|
|
524
|
+
args: {
|
|
525
|
+
filePath: {
|
|
526
|
+
name: 'filePath',
|
|
527
|
+
type: 'string',
|
|
528
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
529
|
+
required: true,
|
|
530
|
+
},
|
|
531
|
+
nodeId: {
|
|
532
|
+
name: 'nodeId',
|
|
533
|
+
type: 'number',
|
|
534
|
+
description: 'The node ID to get outgoing edges for.',
|
|
535
|
+
required: true,
|
|
536
|
+
},
|
|
537
|
+
sortBy: {
|
|
538
|
+
name: 'sortBy',
|
|
539
|
+
type: 'string',
|
|
540
|
+
description: 'Sort order for edges. Default is retainedSize.',
|
|
541
|
+
required: false,
|
|
542
|
+
enum: ['retainedSize', 'selfSize', 'name'],
|
|
543
|
+
},
|
|
544
|
+
retainedSize: {
|
|
545
|
+
name: 'retainedSize',
|
|
546
|
+
type: 'string',
|
|
547
|
+
description: 'Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-") for target nodes. A single value is treated as a minimum. Currently, only the lower bound is applied.',
|
|
548
|
+
required: false,
|
|
549
|
+
},
|
|
550
|
+
excludePrimitives: {
|
|
551
|
+
name: 'excludePrimitives',
|
|
552
|
+
type: 'boolean',
|
|
553
|
+
description: 'Whether to exclude primitive target nodes. Default is true.',
|
|
554
|
+
required: false,
|
|
555
|
+
},
|
|
556
|
+
pageIdx: {
|
|
557
|
+
name: 'pageIdx',
|
|
558
|
+
type: 'number',
|
|
559
|
+
description: 'The page index for pagination.',
|
|
560
|
+
required: false,
|
|
561
|
+
},
|
|
562
|
+
pageSize: {
|
|
563
|
+
name: 'pageSize',
|
|
564
|
+
type: 'number',
|
|
565
|
+
description: 'The page size for pagination.',
|
|
566
|
+
required: false,
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
get_heapsnapshot_object_details: {
|
|
571
|
+
description: 'Loads a memory heapsnapshot and returns detailed information about a specific object by its node ID, including size, type, distance, and DOM detachedness. (requires flag: --memoryDebugging=true)',
|
|
572
|
+
category: 'Memory',
|
|
573
|
+
args: {
|
|
574
|
+
filePath: {
|
|
575
|
+
name: 'filePath',
|
|
576
|
+
type: 'string',
|
|
577
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
578
|
+
required: true,
|
|
579
|
+
},
|
|
580
|
+
nodeId: {
|
|
581
|
+
name: 'nodeId',
|
|
582
|
+
type: 'number',
|
|
583
|
+
description: 'The node ID to get object details for.',
|
|
584
|
+
required: true,
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
get_heapsnapshot_retainers: {
|
|
589
|
+
description: 'Loads a memory heapsnapshot and returns retainers for a specific node ID. (requires flag: --memoryDebugging=true)',
|
|
590
|
+
category: 'Memory',
|
|
591
|
+
args: {
|
|
592
|
+
filePath: {
|
|
593
|
+
name: 'filePath',
|
|
594
|
+
type: 'string',
|
|
595
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
596
|
+
required: true,
|
|
597
|
+
},
|
|
598
|
+
nodeId: {
|
|
599
|
+
name: 'nodeId',
|
|
600
|
+
type: 'number',
|
|
601
|
+
description: 'The node ID to get retainers for.',
|
|
602
|
+
required: true,
|
|
603
|
+
},
|
|
604
|
+
pageIdx: {
|
|
605
|
+
name: 'pageIdx',
|
|
606
|
+
type: 'number',
|
|
607
|
+
description: 'The page index for pagination.',
|
|
608
|
+
required: false,
|
|
609
|
+
},
|
|
610
|
+
pageSize: {
|
|
611
|
+
name: 'pageSize',
|
|
612
|
+
type: 'number',
|
|
613
|
+
description: 'The page size for pagination.',
|
|
614
|
+
required: false,
|
|
615
|
+
},
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
get_heapsnapshot_retaining_paths: {
|
|
619
|
+
description: 'Loads a memory heapsnapshot and returns retaining paths for a specific node ID. This helps to understand why a node is not being garbage collected. (requires flag: --memoryDebugging=true)',
|
|
620
|
+
category: 'Memory',
|
|
621
|
+
args: {
|
|
622
|
+
filePath: {
|
|
623
|
+
name: 'filePath',
|
|
624
|
+
type: 'string',
|
|
625
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
626
|
+
required: true,
|
|
627
|
+
},
|
|
628
|
+
nodeId: {
|
|
629
|
+
name: 'nodeId',
|
|
630
|
+
type: 'number',
|
|
631
|
+
description: 'The node ID to get retaining paths for.',
|
|
632
|
+
required: true,
|
|
633
|
+
},
|
|
634
|
+
maxDepth: {
|
|
635
|
+
name: 'maxDepth',
|
|
636
|
+
type: 'number',
|
|
637
|
+
description: 'The maximum depth to search for retaining paths.',
|
|
638
|
+
required: false,
|
|
639
|
+
},
|
|
640
|
+
maxNodes: {
|
|
641
|
+
name: 'maxNodes',
|
|
642
|
+
type: 'number',
|
|
643
|
+
description: 'The maximum number of nodes to return.',
|
|
644
|
+
required: false,
|
|
645
|
+
},
|
|
646
|
+
maxSiblings: {
|
|
647
|
+
name: 'maxSiblings',
|
|
648
|
+
type: 'number',
|
|
649
|
+
description: 'The maximum number of siblings to return.',
|
|
650
|
+
required: false,
|
|
651
|
+
},
|
|
652
|
+
},
|
|
653
|
+
},
|
|
654
|
+
get_heapsnapshot_summary: {
|
|
655
|
+
description: 'Loads a memory heapsnapshot and returns snapshot summary stats, including native contexts and their sizes, and retained by context summary. (requires flag: --memoryDebugging=true)',
|
|
656
|
+
category: 'Memory',
|
|
657
|
+
args: {
|
|
658
|
+
filePath: {
|
|
659
|
+
name: 'filePath',
|
|
660
|
+
type: 'string',
|
|
661
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
662
|
+
required: true,
|
|
663
|
+
},
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
get_network_request: {
|
|
667
|
+
description: "Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel. Useful for inspecting request headers (including 'Cookie') and response headers (including 'Set-Cookie' and directives).",
|
|
668
|
+
category: 'Network',
|
|
669
|
+
args: {
|
|
670
|
+
pageId: {
|
|
671
|
+
name: 'pageId',
|
|
672
|
+
type: 'number',
|
|
673
|
+
description: 'Targets a specific page by ID.',
|
|
674
|
+
required: true,
|
|
675
|
+
},
|
|
676
|
+
reqid: {
|
|
677
|
+
name: 'reqid',
|
|
678
|
+
type: 'number',
|
|
679
|
+
description: 'The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.',
|
|
680
|
+
required: false,
|
|
681
|
+
},
|
|
682
|
+
requestFilePath: {
|
|
683
|
+
name: 'requestFilePath',
|
|
684
|
+
type: 'string',
|
|
685
|
+
description: 'The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.',
|
|
686
|
+
required: false,
|
|
687
|
+
},
|
|
688
|
+
responseFilePath: {
|
|
689
|
+
name: 'responseFilePath',
|
|
690
|
+
type: 'string',
|
|
691
|
+
description: 'The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.',
|
|
692
|
+
required: false,
|
|
693
|
+
},
|
|
694
|
+
},
|
|
695
|
+
},
|
|
696
|
+
get_os_app_state: {
|
|
697
|
+
description: 'Returns the OS integration state (badge count and registered file handlers) for an installed web app, identified by its manifest ID. (requires flag: --categoryPwa=true)',
|
|
698
|
+
category: 'Progressive Web Apps',
|
|
699
|
+
args: {
|
|
700
|
+
manifestId: {
|
|
701
|
+
name: 'manifestId',
|
|
702
|
+
type: 'string',
|
|
703
|
+
description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
|
|
704
|
+
required: true,
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
},
|
|
708
|
+
handle_dialog: {
|
|
709
|
+
description: 'If a browser dialog was opened, use this command to handle it',
|
|
710
|
+
category: 'Input automation',
|
|
711
|
+
args: {
|
|
712
|
+
pageId: {
|
|
713
|
+
name: 'pageId',
|
|
714
|
+
type: 'number',
|
|
715
|
+
description: 'Targets a specific page by ID.',
|
|
716
|
+
required: true,
|
|
717
|
+
},
|
|
718
|
+
action: {
|
|
719
|
+
name: 'action',
|
|
720
|
+
type: 'string',
|
|
721
|
+
description: 'Whether to dismiss or accept the dialog',
|
|
722
|
+
required: true,
|
|
723
|
+
enum: ['accept', 'dismiss'],
|
|
724
|
+
},
|
|
725
|
+
promptText: {
|
|
726
|
+
name: 'promptText',
|
|
727
|
+
type: 'string',
|
|
728
|
+
description: 'Optional prompt text to enter into the dialog.',
|
|
729
|
+
required: false,
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
},
|
|
733
|
+
hover: {
|
|
734
|
+
description: 'Hover over the provided element',
|
|
735
|
+
category: 'Input automation',
|
|
736
|
+
args: {
|
|
737
|
+
pageId: {
|
|
738
|
+
name: 'pageId',
|
|
739
|
+
type: 'number',
|
|
740
|
+
description: 'Targets a specific page by ID.',
|
|
741
|
+
required: true,
|
|
742
|
+
},
|
|
743
|
+
uid: {
|
|
744
|
+
name: 'uid',
|
|
745
|
+
type: 'string',
|
|
746
|
+
description: 'The uid of an element on the page from the page content snapshot',
|
|
747
|
+
required: true,
|
|
748
|
+
},
|
|
749
|
+
includeSnapshot: {
|
|
750
|
+
name: 'includeSnapshot',
|
|
751
|
+
type: 'boolean',
|
|
752
|
+
description: 'Whether to include a snapshot in the response. Default is false.',
|
|
753
|
+
required: false,
|
|
754
|
+
},
|
|
755
|
+
},
|
|
756
|
+
},
|
|
757
|
+
install_extension: {
|
|
758
|
+
description: 'Installs a Chrome extension from the given path. (requires flag: --categoryExtensions=true)',
|
|
759
|
+
category: 'Extensions',
|
|
760
|
+
args: {
|
|
761
|
+
path: {
|
|
762
|
+
name: 'path',
|
|
763
|
+
type: 'string',
|
|
764
|
+
description: 'Absolute path to the unpacked extension folder.',
|
|
765
|
+
required: true,
|
|
766
|
+
},
|
|
767
|
+
},
|
|
768
|
+
},
|
|
769
|
+
install_pwa: {
|
|
770
|
+
description: 'Installs a Progressive Web App (PWA) identified by its manifest ID. This installs through the PWA CDP domain without a user gesture or install dialog. DevTools installs default to browser display mode. (requires flag: --categoryPwa=true)',
|
|
771
|
+
category: 'Progressive Web Apps',
|
|
772
|
+
args: {
|
|
773
|
+
manifestId: {
|
|
774
|
+
name: 'manifestId',
|
|
775
|
+
type: 'string',
|
|
776
|
+
description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
|
|
777
|
+
required: true,
|
|
778
|
+
},
|
|
779
|
+
installUrlOrBundleUrl: {
|
|
780
|
+
name: 'installUrlOrBundleUrl',
|
|
781
|
+
type: 'string',
|
|
782
|
+
description: 'The location of the app or bundle. For a normal site this is the page URL; for an Isolated Web App it can be a file:// or http(s):// signed web bundle.',
|
|
783
|
+
required: true,
|
|
784
|
+
},
|
|
785
|
+
displayMode: {
|
|
786
|
+
name: 'displayMode',
|
|
787
|
+
type: 'string',
|
|
788
|
+
description: 'Optional user display mode preference applied after install. "standalone" opens the app in its own window; "browser" opens it as a tab. Installs via the PWA CDP domain default to "browser" because they do not simulate the install dialog, so pass "standalone" to get an app-window experience.',
|
|
789
|
+
required: false,
|
|
790
|
+
enum: ['standalone', 'browser'],
|
|
791
|
+
},
|
|
792
|
+
},
|
|
793
|
+
},
|
|
794
|
+
launch_pwa: {
|
|
795
|
+
description: 'Launches an installed Progressive Web App using its saved display mode. Optionally opens a specific URL within the same app instead of the default start URL. (requires flag: --categoryPwa=true)',
|
|
796
|
+
category: 'Progressive Web Apps',
|
|
797
|
+
args: {
|
|
798
|
+
manifestId: {
|
|
799
|
+
name: 'manifestId',
|
|
800
|
+
type: 'string',
|
|
801
|
+
description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
|
|
802
|
+
required: true,
|
|
803
|
+
},
|
|
804
|
+
url: {
|
|
805
|
+
name: 'url',
|
|
806
|
+
type: 'string',
|
|
807
|
+
description: 'Optional URL within the app to open instead of the default start URL.',
|
|
808
|
+
required: false,
|
|
809
|
+
},
|
|
810
|
+
},
|
|
811
|
+
},
|
|
812
|
+
lighthouse_audit: {
|
|
813
|
+
description: 'Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace',
|
|
814
|
+
category: 'Debugging',
|
|
815
|
+
args: {
|
|
816
|
+
pageId: {
|
|
817
|
+
name: 'pageId',
|
|
818
|
+
type: 'number',
|
|
819
|
+
description: 'Targets a specific page by ID.',
|
|
820
|
+
required: true,
|
|
821
|
+
},
|
|
822
|
+
mode: {
|
|
823
|
+
name: 'mode',
|
|
824
|
+
type: 'string',
|
|
825
|
+
description: '"navigation" reloads & audits. "snapshot" analyzes current state.',
|
|
826
|
+
required: false,
|
|
827
|
+
default: 'navigation',
|
|
828
|
+
enum: ['navigation', 'snapshot'],
|
|
829
|
+
},
|
|
830
|
+
device: {
|
|
831
|
+
name: 'device',
|
|
832
|
+
type: 'string',
|
|
833
|
+
description: 'Device to emulate.',
|
|
834
|
+
required: false,
|
|
835
|
+
default: 'desktop',
|
|
836
|
+
enum: ['desktop', 'mobile'],
|
|
837
|
+
},
|
|
838
|
+
outputDirPath: {
|
|
839
|
+
name: 'outputDirPath',
|
|
840
|
+
type: 'string',
|
|
841
|
+
description: 'Directory for reports. If omitted, uses temporary files.',
|
|
842
|
+
required: false,
|
|
843
|
+
},
|
|
844
|
+
},
|
|
845
|
+
},
|
|
846
|
+
list_3p_developer_tools: {
|
|
847
|
+
description: "Lists all third-party developer tools the page exposes for providing runtime information.\nThird-party developer tools can be called via the 'execute_3p_developer_tool()' MCP tool.\nAlternatively, third-party developer tools can be executed by calling 'evaluate_script' and adding the\nfollowing command to the script:\n`window.__dtmcp.executeTool(toolName, params)`\nThis might be helpful when the third-party developer tools return non-serializable values or when composing\nthird-party developer tools with additional functionality. (requires flag: --categoryExperimentalThirdParty=true)",
|
|
848
|
+
category: 'Third-party',
|
|
849
|
+
args: {
|
|
850
|
+
pageId: {
|
|
851
|
+
name: 'pageId',
|
|
852
|
+
type: 'number',
|
|
853
|
+
description: 'Targets a specific page by ID.',
|
|
854
|
+
required: true,
|
|
855
|
+
},
|
|
856
|
+
},
|
|
857
|
+
},
|
|
858
|
+
list_console_messages: {
|
|
859
|
+
description: 'List all console messages for the target page since the last navigation. This includes console messages originating from extensions content scripts.',
|
|
860
|
+
category: 'Debugging',
|
|
861
|
+
args: {
|
|
862
|
+
pageId: {
|
|
863
|
+
name: 'pageId',
|
|
864
|
+
type: 'number',
|
|
865
|
+
description: 'Targets a specific page by ID.',
|
|
866
|
+
required: true,
|
|
867
|
+
},
|
|
868
|
+
pageSize: {
|
|
869
|
+
name: 'pageSize',
|
|
870
|
+
type: 'integer',
|
|
871
|
+
description: 'Maximum number of messages to return. When omitted, returns all messages.',
|
|
872
|
+
required: false,
|
|
873
|
+
},
|
|
874
|
+
pageIdx: {
|
|
875
|
+
name: 'pageIdx',
|
|
876
|
+
type: 'integer',
|
|
877
|
+
description: 'Page number to return (0-based). When omitted, returns the first page.',
|
|
878
|
+
required: false,
|
|
879
|
+
},
|
|
880
|
+
types: {
|
|
881
|
+
name: 'types',
|
|
882
|
+
type: 'array',
|
|
883
|
+
description: 'Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.',
|
|
884
|
+
required: false,
|
|
885
|
+
},
|
|
886
|
+
includePreservedMessages: {
|
|
887
|
+
name: 'includePreservedMessages',
|
|
888
|
+
type: 'boolean',
|
|
889
|
+
description: 'Set to true to return the preserved messages over the last 3 navigations.',
|
|
890
|
+
required: false,
|
|
891
|
+
default: false,
|
|
892
|
+
},
|
|
893
|
+
includeStackTraces: {
|
|
894
|
+
name: 'includeStackTraces',
|
|
895
|
+
type: 'boolean',
|
|
896
|
+
description: 'Set to true to include the stack trace for each message when available. Increases the response size.',
|
|
897
|
+
required: false,
|
|
898
|
+
default: false,
|
|
899
|
+
},
|
|
900
|
+
serviceWorkerId: {
|
|
901
|
+
name: 'serviceWorkerId',
|
|
902
|
+
type: 'string',
|
|
903
|
+
description: 'Filter messages to only return messages of the specified service worker.',
|
|
904
|
+
required: false,
|
|
905
|
+
},
|
|
906
|
+
},
|
|
907
|
+
},
|
|
908
|
+
list_extensions: {
|
|
909
|
+
description: 'Lists all the Chrome extensions installed in the browser. This includes their name, ID, version, and enabled status. (requires flag: --categoryExtensions=true)',
|
|
910
|
+
category: 'Extensions',
|
|
911
|
+
args: {},
|
|
912
|
+
},
|
|
913
|
+
list_network_requests: {
|
|
914
|
+
description: 'Lists the most recent requests for the target page since the last navigation.',
|
|
915
|
+
category: 'Network',
|
|
916
|
+
args: {
|
|
917
|
+
pageId: {
|
|
918
|
+
name: 'pageId',
|
|
919
|
+
type: 'number',
|
|
920
|
+
description: 'Targets a specific page by ID.',
|
|
921
|
+
required: true,
|
|
922
|
+
},
|
|
923
|
+
pageSize: {
|
|
924
|
+
name: 'pageSize',
|
|
925
|
+
type: 'integer',
|
|
926
|
+
description: 'Maximum number of requests to return. When omitted, returns all requests.',
|
|
927
|
+
required: false,
|
|
928
|
+
},
|
|
929
|
+
pageIdx: {
|
|
930
|
+
name: 'pageIdx',
|
|
931
|
+
type: 'integer',
|
|
932
|
+
description: 'Page number to return (0-based). When omitted, returns the first page.',
|
|
933
|
+
required: false,
|
|
934
|
+
},
|
|
935
|
+
resourceTypes: {
|
|
936
|
+
name: 'resourceTypes',
|
|
937
|
+
type: 'array',
|
|
938
|
+
description: 'Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests.',
|
|
939
|
+
required: false,
|
|
940
|
+
},
|
|
941
|
+
includePreservedRequests: {
|
|
942
|
+
name: 'includePreservedRequests',
|
|
943
|
+
type: 'boolean',
|
|
944
|
+
description: 'Set to true to return the preserved requests over the last 3 navigations.',
|
|
945
|
+
required: false,
|
|
946
|
+
default: false,
|
|
947
|
+
},
|
|
948
|
+
},
|
|
949
|
+
},
|
|
950
|
+
list_pages: {
|
|
951
|
+
description: 'Get a list of pages including extension service workers open in the browser.',
|
|
952
|
+
category: 'Navigation automation',
|
|
953
|
+
args: {},
|
|
954
|
+
},
|
|
955
|
+
list_webmcp_tools: {
|
|
956
|
+
description: 'Lists all WebMCP tools the page exposes. (requires flag: --categoryExperimentalWebmcp=true)',
|
|
957
|
+
category: 'WebMCP',
|
|
958
|
+
args: {
|
|
959
|
+
pageId: {
|
|
960
|
+
name: 'pageId',
|
|
961
|
+
type: 'number',
|
|
962
|
+
description: 'Targets a specific page by ID.',
|
|
963
|
+
required: true,
|
|
964
|
+
},
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
navigate_page: {
|
|
968
|
+
description: 'Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.',
|
|
969
|
+
category: 'Navigation automation',
|
|
970
|
+
args: {
|
|
971
|
+
pageId: {
|
|
972
|
+
name: 'pageId',
|
|
973
|
+
type: 'number',
|
|
974
|
+
description: 'Targets a specific page by ID.',
|
|
975
|
+
required: true,
|
|
976
|
+
},
|
|
977
|
+
type: {
|
|
978
|
+
name: 'type',
|
|
979
|
+
type: 'string',
|
|
980
|
+
description: 'Navigate the page by URL, back or forward in history, or reload.',
|
|
981
|
+
required: false,
|
|
982
|
+
enum: ['url', 'back', 'forward', 'reload'],
|
|
983
|
+
},
|
|
984
|
+
url: {
|
|
985
|
+
name: 'url',
|
|
986
|
+
type: 'string',
|
|
987
|
+
description: 'Target URL (only type=url)',
|
|
988
|
+
required: false,
|
|
989
|
+
},
|
|
990
|
+
ignoreCache: {
|
|
991
|
+
name: 'ignoreCache',
|
|
992
|
+
type: 'boolean',
|
|
993
|
+
description: 'Whether to ignore cache on reload.',
|
|
994
|
+
required: false,
|
|
995
|
+
},
|
|
996
|
+
handleBeforeUnload: {
|
|
997
|
+
name: 'handleBeforeUnload',
|
|
998
|
+
type: 'string',
|
|
999
|
+
description: 'Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.',
|
|
1000
|
+
required: false,
|
|
1001
|
+
enum: ['accept', 'dismiss'],
|
|
1002
|
+
},
|
|
1003
|
+
initScript: {
|
|
1004
|
+
name: 'initScript',
|
|
1005
|
+
type: 'string',
|
|
1006
|
+
description: 'A JavaScript script to be executed on each new document before any other scripts for the next navigation.',
|
|
1007
|
+
required: false,
|
|
1008
|
+
},
|
|
1009
|
+
timeout: {
|
|
1010
|
+
name: 'timeout',
|
|
1011
|
+
type: 'integer',
|
|
1012
|
+
description: 'Maximum wait time in milliseconds. If set to 0, the default timeout will be used.',
|
|
1013
|
+
required: false,
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
},
|
|
1017
|
+
new_page: {
|
|
1018
|
+
description: 'Open a new tab and load a URL. Use project URL if not specified otherwise.',
|
|
1019
|
+
category: 'Navigation automation',
|
|
1020
|
+
args: {
|
|
1021
|
+
url: {
|
|
1022
|
+
name: 'url',
|
|
1023
|
+
type: 'string',
|
|
1024
|
+
description: 'URL to load in a new page.',
|
|
1025
|
+
required: true,
|
|
1026
|
+
},
|
|
1027
|
+
background: {
|
|
1028
|
+
name: 'background',
|
|
1029
|
+
type: 'boolean',
|
|
1030
|
+
description: 'Whether to open the page in the background without bringing it to the front. Default is false (foreground).',
|
|
1031
|
+
required: false,
|
|
1032
|
+
},
|
|
1033
|
+
isolatedContext: {
|
|
1034
|
+
name: 'isolatedContext',
|
|
1035
|
+
type: 'string',
|
|
1036
|
+
description: 'If specified, the page is created in an isolated browser context with the given name. Pages in the same browser context share cookies and storage. Pages in different browser contexts are fully isolated (useful for clean-slate testing of cookies and authentication).',
|
|
1037
|
+
required: false,
|
|
1038
|
+
},
|
|
1039
|
+
timeout: {
|
|
1040
|
+
name: 'timeout',
|
|
1041
|
+
type: 'integer',
|
|
1042
|
+
description: 'Maximum wait time in milliseconds. If set to 0, the default timeout will be used.',
|
|
1043
|
+
required: false,
|
|
1044
|
+
},
|
|
1045
|
+
},
|
|
1046
|
+
},
|
|
1047
|
+
performance_analyze_insight: {
|
|
1048
|
+
description: 'Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.',
|
|
1049
|
+
category: 'Performance',
|
|
1050
|
+
args: {
|
|
1051
|
+
pageId: {
|
|
1052
|
+
name: 'pageId',
|
|
1053
|
+
type: 'number',
|
|
1054
|
+
description: 'Targets a specific page by ID.',
|
|
1055
|
+
required: true,
|
|
1056
|
+
},
|
|
1057
|
+
insightSetId: {
|
|
1058
|
+
name: 'insightSetId',
|
|
1059
|
+
type: 'string',
|
|
1060
|
+
description: 'The id for the specific insight set. Only use the ids given in the "Available insight sets" list.',
|
|
1061
|
+
required: true,
|
|
1062
|
+
},
|
|
1063
|
+
insightName: {
|
|
1064
|
+
name: 'insightName',
|
|
1065
|
+
type: 'string',
|
|
1066
|
+
description: 'The name of the Insight you want more information on. For example: "DocumentLatency" or "LCPBreakdown"',
|
|
1067
|
+
required: true,
|
|
1068
|
+
},
|
|
1069
|
+
},
|
|
1070
|
+
},
|
|
1071
|
+
performance_start_trace: {
|
|
1072
|
+
description: 'Start a performance trace on the target webpage. Use to find frontend performance issues, Core Web Vitals (LCP, INP, CLS), and improve page load speed.',
|
|
1073
|
+
category: 'Performance',
|
|
1074
|
+
args: {
|
|
1075
|
+
pageId: {
|
|
1076
|
+
name: 'pageId',
|
|
1077
|
+
type: 'number',
|
|
1078
|
+
description: 'Targets a specific page by ID.',
|
|
1079
|
+
required: true,
|
|
1080
|
+
},
|
|
1081
|
+
reload: {
|
|
1082
|
+
name: 'reload',
|
|
1083
|
+
type: 'boolean',
|
|
1084
|
+
description: 'Determines if, once tracing has started, the target page should be automatically reloaded. Navigate the page to the right URL using the navigate_page tool BEFORE starting the trace if reload or autoStop is set to true.',
|
|
1085
|
+
required: false,
|
|
1086
|
+
default: true,
|
|
1087
|
+
},
|
|
1088
|
+
autoStop: {
|
|
1089
|
+
name: 'autoStop',
|
|
1090
|
+
type: 'boolean',
|
|
1091
|
+
description: 'Determines if the trace recording should be automatically stopped.',
|
|
1092
|
+
required: false,
|
|
1093
|
+
default: true,
|
|
1094
|
+
},
|
|
1095
|
+
filePath: {
|
|
1096
|
+
name: 'filePath',
|
|
1097
|
+
type: 'string',
|
|
1098
|
+
description: 'The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).',
|
|
1099
|
+
required: false,
|
|
1100
|
+
},
|
|
1101
|
+
},
|
|
1102
|
+
},
|
|
1103
|
+
performance_stop_trace: {
|
|
1104
|
+
description: 'Stop the active performance trace recording on the target webpage.',
|
|
1105
|
+
category: 'Performance',
|
|
1106
|
+
args: {
|
|
1107
|
+
pageId: {
|
|
1108
|
+
name: 'pageId',
|
|
1109
|
+
type: 'number',
|
|
1110
|
+
description: 'Targets a specific page by ID.',
|
|
1111
|
+
required: true,
|
|
1112
|
+
},
|
|
1113
|
+
filePath: {
|
|
1114
|
+
name: 'filePath',
|
|
1115
|
+
type: 'string',
|
|
1116
|
+
description: 'The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).',
|
|
1117
|
+
required: false,
|
|
1118
|
+
},
|
|
1119
|
+
},
|
|
1120
|
+
},
|
|
1121
|
+
press_key: {
|
|
1122
|
+
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).',
|
|
1123
|
+
category: 'Input automation',
|
|
1124
|
+
args: {
|
|
1125
|
+
pageId: {
|
|
1126
|
+
name: 'pageId',
|
|
1127
|
+
type: 'number',
|
|
1128
|
+
description: 'Targets a specific page by ID.',
|
|
1129
|
+
required: true,
|
|
1130
|
+
},
|
|
1131
|
+
key: {
|
|
1132
|
+
name: 'key',
|
|
1133
|
+
type: 'string',
|
|
1134
|
+
description: 'A key or a combination (e.g., "Enter", "Control+A", "Control++", "Control+Shift+R"). Modifiers: Control, Shift, Alt, Meta',
|
|
1135
|
+
required: true,
|
|
1136
|
+
},
|
|
1137
|
+
includeSnapshot: {
|
|
1138
|
+
name: 'includeSnapshot',
|
|
1139
|
+
type: 'boolean',
|
|
1140
|
+
description: 'Whether to include a snapshot in the response. Default is false.',
|
|
1141
|
+
required: false,
|
|
1142
|
+
},
|
|
1143
|
+
},
|
|
1144
|
+
},
|
|
1145
|
+
query_heapsnapshot_objects: {
|
|
1146
|
+
description: 'Loads a memory heapsnapshot and queries objects matching specific filters (className, propertyName, nodeType, retainedSize, selfSize, isDetached, sortBy). (requires flag: --memoryDebugging=true)',
|
|
1147
|
+
category: 'Memory',
|
|
1148
|
+
args: {
|
|
1149
|
+
filePath: {
|
|
1150
|
+
name: 'filePath',
|
|
1151
|
+
type: 'string',
|
|
1152
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
1153
|
+
required: true,
|
|
1154
|
+
},
|
|
1155
|
+
className: {
|
|
1156
|
+
name: 'className',
|
|
1157
|
+
type: 'string',
|
|
1158
|
+
description: 'Optional regex or text matching object class name.',
|
|
1159
|
+
required: false,
|
|
1160
|
+
},
|
|
1161
|
+
propertyName: {
|
|
1162
|
+
name: 'propertyName',
|
|
1163
|
+
type: 'string',
|
|
1164
|
+
description: 'Optional property name filter for outgoing reference edges.',
|
|
1165
|
+
required: false,
|
|
1166
|
+
},
|
|
1167
|
+
nodeType: {
|
|
1168
|
+
name: 'nodeType',
|
|
1169
|
+
type: 'string',
|
|
1170
|
+
description: 'Optional V8 node type filter (e.g. object, closure, string, array, code).',
|
|
1171
|
+
required: false,
|
|
1172
|
+
},
|
|
1173
|
+
retainedSize: {
|
|
1174
|
+
name: 'retainedSize',
|
|
1175
|
+
type: 'string',
|
|
1176
|
+
description: 'Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.',
|
|
1177
|
+
required: false,
|
|
1178
|
+
},
|
|
1179
|
+
selfSize: {
|
|
1180
|
+
name: 'selfSize',
|
|
1181
|
+
type: 'string',
|
|
1182
|
+
description: 'Inclusive self size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.',
|
|
1183
|
+
required: false,
|
|
1184
|
+
},
|
|
1185
|
+
isDetached: {
|
|
1186
|
+
name: 'isDetached',
|
|
1187
|
+
type: 'boolean',
|
|
1188
|
+
description: 'Whether to filter for detached DOM nodes.',
|
|
1189
|
+
required: false,
|
|
1190
|
+
},
|
|
1191
|
+
sortBy: {
|
|
1192
|
+
name: 'sortBy',
|
|
1193
|
+
type: 'string',
|
|
1194
|
+
description: 'Sort order for results. Default is retainedSize.',
|
|
1195
|
+
required: false,
|
|
1196
|
+
enum: ['retainedSize', 'selfSize', 'id'],
|
|
1197
|
+
},
|
|
1198
|
+
pageIdx: {
|
|
1199
|
+
name: 'pageIdx',
|
|
1200
|
+
type: 'number',
|
|
1201
|
+
description: 'The page index for pagination.',
|
|
1202
|
+
required: false,
|
|
1203
|
+
},
|
|
1204
|
+
pageSize: {
|
|
1205
|
+
name: 'pageSize',
|
|
1206
|
+
type: 'number',
|
|
1207
|
+
description: 'The page size for pagination.',
|
|
1208
|
+
required: false,
|
|
1209
|
+
},
|
|
1210
|
+
},
|
|
1211
|
+
},
|
|
1212
|
+
reload_extension: {
|
|
1213
|
+
description: 'Reloads an unpacked Chrome extension by its ID. (requires flag: --categoryExtensions=true)',
|
|
1214
|
+
category: 'Extensions',
|
|
1215
|
+
args: {
|
|
1216
|
+
id: {
|
|
1217
|
+
name: 'id',
|
|
1218
|
+
type: 'string',
|
|
1219
|
+
description: 'ID of the extension to reload.',
|
|
1220
|
+
required: true,
|
|
1221
|
+
},
|
|
1222
|
+
},
|
|
1223
|
+
},
|
|
1224
|
+
resize_page: {
|
|
1225
|
+
description: "Resizes the page's window so that the page has specified dimension",
|
|
1226
|
+
category: 'Emulation',
|
|
1227
|
+
args: {
|
|
1228
|
+
pageId: {
|
|
1229
|
+
name: 'pageId',
|
|
1230
|
+
type: 'number',
|
|
1231
|
+
description: 'Targets a specific page by ID.',
|
|
1232
|
+
required: true,
|
|
1233
|
+
},
|
|
1234
|
+
width: {
|
|
1235
|
+
name: 'width',
|
|
1236
|
+
type: 'number',
|
|
1237
|
+
description: 'Page width',
|
|
1238
|
+
required: true,
|
|
1239
|
+
},
|
|
1240
|
+
height: {
|
|
1241
|
+
name: 'height',
|
|
1242
|
+
type: 'number',
|
|
1243
|
+
description: 'Page height',
|
|
1244
|
+
required: true,
|
|
1245
|
+
},
|
|
1246
|
+
},
|
|
1247
|
+
},
|
|
1248
|
+
screencast_start: {
|
|
1249
|
+
description: 'Starts recording a screencast (video) of the target page in specified format. (requires flag: --experimentalScreencast=true)',
|
|
1250
|
+
category: 'Debugging',
|
|
1251
|
+
args: {
|
|
1252
|
+
pageId: {
|
|
1253
|
+
name: 'pageId',
|
|
1254
|
+
type: 'number',
|
|
1255
|
+
description: 'Targets a specific page by ID.',
|
|
1256
|
+
required: true,
|
|
1257
|
+
},
|
|
1258
|
+
filePath: {
|
|
1259
|
+
name: 'filePath',
|
|
1260
|
+
type: 'string',
|
|
1261
|
+
description: 'Output file path (.webm,.mp4 are supported). Uses mkdtemp to generate a unique path if not provided.',
|
|
1262
|
+
required: false,
|
|
1263
|
+
},
|
|
1264
|
+
},
|
|
1265
|
+
},
|
|
1266
|
+
screencast_stop: {
|
|
1267
|
+
description: 'Stops the active screencast recording on the target page. (requires flag: --experimentalScreencast=true)',
|
|
1268
|
+
category: 'Debugging',
|
|
1269
|
+
args: {
|
|
1270
|
+
pageId: {
|
|
1271
|
+
name: 'pageId',
|
|
1272
|
+
type: 'number',
|
|
1273
|
+
description: 'Targets a specific page by ID.',
|
|
1274
|
+
required: true,
|
|
1275
|
+
},
|
|
1276
|
+
},
|
|
1277
|
+
},
|
|
1278
|
+
select_page: {
|
|
1279
|
+
description: 'Select a page as a context for future tool calls.',
|
|
1280
|
+
category: 'Navigation automation',
|
|
1281
|
+
args: {
|
|
1282
|
+
pageId: {
|
|
1283
|
+
name: 'pageId',
|
|
1284
|
+
type: 'number',
|
|
1285
|
+
description: 'The ID of the page to select. Call list_pages to get available pages.',
|
|
1286
|
+
required: true,
|
|
1287
|
+
},
|
|
1288
|
+
bringToFront: {
|
|
1289
|
+
name: 'bringToFront',
|
|
1290
|
+
type: 'boolean',
|
|
1291
|
+
description: 'Whether to focus the page and bring it to the top.',
|
|
1292
|
+
required: false,
|
|
1293
|
+
},
|
|
1294
|
+
},
|
|
1295
|
+
},
|
|
1296
|
+
take_heapsnapshot: {
|
|
1297
|
+
description: 'Capture a heap snapshot of the target page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.',
|
|
1298
|
+
category: 'Memory',
|
|
1299
|
+
args: {
|
|
1300
|
+
pageId: {
|
|
1301
|
+
name: 'pageId',
|
|
1302
|
+
type: 'number',
|
|
1303
|
+
description: 'Targets a specific page by ID.',
|
|
1304
|
+
required: true,
|
|
1305
|
+
},
|
|
1306
|
+
filePath: {
|
|
1307
|
+
name: 'filePath',
|
|
1308
|
+
type: 'string',
|
|
1309
|
+
description: 'A path to a .heapsnapshot file to save the heapsnapshot to.',
|
|
1310
|
+
required: true,
|
|
1311
|
+
},
|
|
1312
|
+
},
|
|
1313
|
+
},
|
|
1314
|
+
take_screenshot: {
|
|
1315
|
+
description: 'Take a screenshot of the page or element.',
|
|
1316
|
+
category: 'Debugging',
|
|
1317
|
+
args: {
|
|
1318
|
+
pageId: {
|
|
1319
|
+
name: 'pageId',
|
|
1320
|
+
type: 'number',
|
|
1321
|
+
description: 'Targets a specific page by ID.',
|
|
1322
|
+
required: true,
|
|
1323
|
+
},
|
|
1324
|
+
format: {
|
|
1325
|
+
name: 'format',
|
|
1326
|
+
type: 'string',
|
|
1327
|
+
description: 'Type of format to save the screenshot as. Default is "png"',
|
|
1328
|
+
required: false,
|
|
1329
|
+
default: 'png',
|
|
1330
|
+
enum: ['png', 'jpeg', 'webp'],
|
|
1331
|
+
},
|
|
1332
|
+
quality: {
|
|
1333
|
+
name: 'quality',
|
|
1334
|
+
type: 'number',
|
|
1335
|
+
description: 'Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.',
|
|
1336
|
+
required: false,
|
|
1337
|
+
},
|
|
1338
|
+
uid: {
|
|
1339
|
+
name: 'uid',
|
|
1340
|
+
type: 'string',
|
|
1341
|
+
description: 'The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot.',
|
|
1342
|
+
required: false,
|
|
1343
|
+
},
|
|
1344
|
+
fullPage: {
|
|
1345
|
+
name: 'fullPage',
|
|
1346
|
+
type: 'boolean',
|
|
1347
|
+
description: 'If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.',
|
|
1348
|
+
required: false,
|
|
1349
|
+
},
|
|
1350
|
+
filePath: {
|
|
1351
|
+
name: 'filePath',
|
|
1352
|
+
type: 'string',
|
|
1353
|
+
description: 'The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response.',
|
|
1354
|
+
required: false,
|
|
1355
|
+
},
|
|
1356
|
+
},
|
|
1357
|
+
},
|
|
1358
|
+
take_snapshot: {
|
|
1359
|
+
description: 'Take a text snapshot of the target page based on the a11y tree. The snapshot lists page elements along with a unique\nidentifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot. The snapshot indicates the element selected\nin the DevTools Elements panel (if any).',
|
|
1360
|
+
category: 'Debugging',
|
|
1361
|
+
args: {
|
|
1362
|
+
pageId: {
|
|
1363
|
+
name: 'pageId',
|
|
1364
|
+
type: 'number',
|
|
1365
|
+
description: 'Targets a specific page by ID.',
|
|
1366
|
+
required: true,
|
|
1367
|
+
},
|
|
1368
|
+
verbose: {
|
|
1369
|
+
name: 'verbose',
|
|
1370
|
+
type: 'boolean',
|
|
1371
|
+
description: 'Whether to include all possible information available in the full a11y tree. Default is false.',
|
|
1372
|
+
required: false,
|
|
1373
|
+
},
|
|
1374
|
+
filePath: {
|
|
1375
|
+
name: 'filePath',
|
|
1376
|
+
type: 'string',
|
|
1377
|
+
description: 'The absolute path, or a path relative to the current working directory, to save the snapshot to instead of attaching it to the response.',
|
|
1378
|
+
required: false,
|
|
1379
|
+
},
|
|
1380
|
+
},
|
|
1381
|
+
},
|
|
1382
|
+
trigger_extension_action: {
|
|
1383
|
+
description: 'Triggers the default action of an extension by its ID. (requires flag: --categoryExtensions=true)',
|
|
1384
|
+
category: 'Extensions',
|
|
1385
|
+
args: {
|
|
1386
|
+
id: {
|
|
1387
|
+
name: 'id',
|
|
1388
|
+
type: 'string',
|
|
1389
|
+
description: 'ID of the extension to trigger the action for.',
|
|
1390
|
+
required: true,
|
|
1391
|
+
},
|
|
1392
|
+
},
|
|
1393
|
+
},
|
|
1394
|
+
type_text: {
|
|
1395
|
+
description: 'Type text using keyboard into a previously focused input',
|
|
1396
|
+
category: 'Input automation',
|
|
1397
|
+
args: {
|
|
1398
|
+
pageId: {
|
|
1399
|
+
name: 'pageId',
|
|
1400
|
+
type: 'number',
|
|
1401
|
+
description: 'Targets a specific page by ID.',
|
|
1402
|
+
required: true,
|
|
1403
|
+
},
|
|
1404
|
+
text: {
|
|
1405
|
+
name: 'text',
|
|
1406
|
+
type: 'string',
|
|
1407
|
+
description: 'The text to type',
|
|
1408
|
+
required: true,
|
|
1409
|
+
},
|
|
1410
|
+
submitKey: {
|
|
1411
|
+
name: 'submitKey',
|
|
1412
|
+
type: 'string',
|
|
1413
|
+
description: 'Optional key to press after typing. E.g., "Enter", "Tab", "Escape"',
|
|
1414
|
+
required: false,
|
|
1415
|
+
},
|
|
1416
|
+
},
|
|
1417
|
+
},
|
|
1418
|
+
uninstall_extension: {
|
|
1419
|
+
description: 'Uninstalls a Chrome extension by its ID. (requires flag: --categoryExtensions=true)',
|
|
1420
|
+
category: 'Extensions',
|
|
1421
|
+
args: {
|
|
1422
|
+
id: {
|
|
1423
|
+
name: 'id',
|
|
1424
|
+
type: 'string',
|
|
1425
|
+
description: 'ID of the extension to uninstall.',
|
|
1426
|
+
required: true,
|
|
1427
|
+
},
|
|
1428
|
+
},
|
|
1429
|
+
},
|
|
1430
|
+
uninstall_pwa: {
|
|
1431
|
+
description: 'Uninstalls a Progressive Web App identified by its manifest ID and closes any open app windows. (requires flag: --categoryPwa=true)',
|
|
1432
|
+
category: 'Progressive Web Apps',
|
|
1433
|
+
args: {
|
|
1434
|
+
manifestId: {
|
|
1435
|
+
name: 'manifestId',
|
|
1436
|
+
type: 'string',
|
|
1437
|
+
description: 'The manifest ID of the web app: the resolved `id` member of its manifest. If `id` is omitted, it defaults to the resolved `start_url` (e.g. "https://example.com/"). See https://w3c.github.io/manifest/#id-member.',
|
|
1438
|
+
required: true,
|
|
1439
|
+
},
|
|
1440
|
+
},
|
|
1441
|
+
},
|
|
1442
|
+
upload_file: {
|
|
1443
|
+
description: 'Upload a file through a provided element.',
|
|
1444
|
+
category: 'Input automation',
|
|
1445
|
+
args: {
|
|
1446
|
+
pageId: {
|
|
1447
|
+
name: 'pageId',
|
|
1448
|
+
type: 'number',
|
|
1449
|
+
description: 'Targets a specific page by ID.',
|
|
1450
|
+
required: true,
|
|
1451
|
+
},
|
|
1452
|
+
uid: {
|
|
1453
|
+
name: 'uid',
|
|
1454
|
+
type: 'string',
|
|
1455
|
+
description: 'The uid of the file input element or an element that will open file chooser on the page from the page content snapshot',
|
|
1456
|
+
required: true,
|
|
1457
|
+
},
|
|
1458
|
+
filePaths: {
|
|
1459
|
+
name: 'filePaths',
|
|
1460
|
+
type: 'array',
|
|
1461
|
+
description: 'One or more files paths to upload. File paths have to be local to the browser instance (not the MCP).',
|
|
1462
|
+
required: true,
|
|
1463
|
+
},
|
|
1464
|
+
includeSnapshot: {
|
|
1465
|
+
name: 'includeSnapshot',
|
|
1466
|
+
type: 'boolean',
|
|
1467
|
+
description: 'Whether to include a snapshot in the response. Default is false.',
|
|
1468
|
+
required: false,
|
|
1469
|
+
},
|
|
1470
|
+
},
|
|
1471
|
+
},
|
|
1472
|
+
};
|
|
1473
|
+
//# sourceMappingURL=cli-options.js.map
|