chrome-devtools-mcp 1.6.0 → 1.8.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 -22
- package/build/src/McpContext.js +121 -44
- package/build/src/McpPage.js +230 -14
- package/build/src/McpResponse.js +209 -283
- package/build/src/SlimMcpResponse.js +1 -1
- package/build/src/TextSnapshot.js +80 -19
- package/build/src/ToolHandler.js +80 -15
- package/build/src/bin/chrome-devtools-mcp-main.js +3 -3
- package/build/src/bin/chrome-devtools.js +47 -32
- package/build/src/browser.js +3 -1
- package/build/src/{PageCollector.js → collectors/PageCollector.js} +15 -10
- package/build/src/{ServiceWorkerCollector.js → collectors/ServiceWorkerCollector.js} +1 -1
- package/build/src/{bin/chrome-devtools-cli-options.js → config/cli-options.js} +414 -23
- package/build/src/{bin/chrome-devtools-mcp-cli-options.js → config/mcp-options.js} +74 -9
- package/build/src/daemon/client.js +33 -2
- package/build/src/daemon/daemon.js +17 -13
- package/build/src/daemon/utils.js +18 -3
- package/build/src/devtools/DevtoolsUtils.js +9 -16
- package/build/src/formatters/ConsoleFormatter.js +43 -10
- package/build/src/formatters/HeapSnapshotFormatter.js +58 -13
- package/build/src/formatters/IssueFormatter.js +1 -1
- package/build/src/formatters/NetworkFormatter.js +7 -7
- package/build/src/index.js +34 -5
- package/build/src/{HeapSnapshotManager.js → processors/HeapSnapshotManager.js} +82 -27
- package/build/src/{trace-processing/parse.js → processors/PerformanceTrace.js} +1 -1
- package/build/src/telemetry/ClearcutLogger.js +16 -1
- package/build/src/telemetry/flagUtils.js +4 -3
- package/build/src/telemetry/transformation.js +30 -0
- package/build/src/telemetry/types.js +4 -0
- package/build/src/third_party/THIRD_PARTY_NOTICES +235 -113
- package/build/src/third_party/bundled-packages.json +6 -7
- package/build/src/third_party/devtools-formatter-worker.js +60 -19
- package/build/src/third_party/devtools-heap-snapshot-worker.js +657 -224
- package/build/src/third_party/index.js +62484 -43814
- package/build/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +2 -2
- package/build/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +3 -3
- package/build/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +2 -2
- package/build/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +1 -1
- package/build/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +1 -1
- package/build/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +2 -2
- package/build/src/third_party/issue-descriptions/LowTextContrast.md +1 -1
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +1 -1
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +1 -1
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +1 -1
- package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +1 -1
- package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +3 -3
- package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +3 -3
- package/build/src/third_party/issue-descriptions/bounceTrackingMitigations.md +1 -1
- 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 +2 -2
- package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +2 -2
- package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +3 -3
- package/build/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +2 -2
- package/build/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +2 -2
- package/build/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +1 -1
- package/build/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +3 -3
- package/build/src/third_party/issue-descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +1 -1
- package/build/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +1 -1
- package/build/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +1 -1
- package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +1 -1
- package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +1 -1
- package/build/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +1 -1
- package/build/src/third_party/issue-descriptions/corsDisabledScheme.md +2 -2
- package/build/src/third_party/issue-descriptions/corsDisallowedByMode.md +2 -2
- package/build/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +3 -3
- package/build/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +1 -1
- package/build/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +1 -1
- package/build/src/third_party/issue-descriptions/corsOriginMismatch.md +3 -3
- package/build/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +2 -2
- package/build/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +3 -3
- package/build/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +4 -3
- package/build/src/third_party/issue-descriptions/cspEvalViolation.md +4 -4
- package/build/src/third_party/issue-descriptions/cspInlineViolation.md +2 -2
- package/build/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +2 -2
- package/build/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +4 -4
- package/build/src/third_party/issue-descriptions/cspURLViolation.md +4 -4
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -1
- package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -1
- package/build/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +2 -2
- package/build/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +2 -2
- package/build/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +2 -2
- package/build/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +2 -2
- package/build/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +2 -2
- package/build/src/third_party/issue-descriptions/genericFormLabelForNameError.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +1 -1
- package/build/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +1 -1
- package/build/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +2 -2
- package/build/src/third_party/issue-descriptions/heavyAd.md +1 -1
- package/build/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +7 -0
- package/build/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +3 -3
- package/build/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +1 -1
- package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +1 -1
- package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +1 -1
- package/build/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +1 -1
- package/build/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementInvalidType.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +1 -1
- package/build/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +1 -1
- package/build/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +2 -2
- package/build/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +1 -1
- package/build/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +1 -1
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +1 -1
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +1 -1
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +1 -1
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +1 -1
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +1 -1
- package/build/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +1 -1
- package/build/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +3 -3
- package/build/src/third_party/issue-descriptions/sharedArrayBuffer.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +2 -2
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -1
- package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +2 -2
- package/build/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +4 -4
- package/build/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +4 -4
- package/build/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +1 -1
- package/build/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +2 -2
- package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +2 -2
- package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +4 -4
- package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +4 -4
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +1 -1
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +2 -2
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +1 -1
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +1 -1
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +2 -2
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +5 -5
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +3 -3
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +2 -2
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +2 -2
- package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +2 -2
- package/build/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +4 -4
- package/build/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +3 -3
- package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +2 -2
- package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +2 -2
- package/build/src/third_party/issue-descriptions/stylesheetLateImport.md +1 -1
- package/build/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +1 -1
- package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +2 -2
- package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +3 -3
- package/build/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +2 -2
- package/build/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +1 -1
- package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +1125 -1027
- package/build/src/tools/categories.js +3 -0
- package/build/src/tools/console.js +9 -3
- package/build/src/tools/emulation.js +2 -2
- package/build/src/tools/extensions.js +7 -5
- package/build/src/tools/input.js +222 -120
- package/build/src/tools/lighthouse.js +3 -1
- package/build/src/tools/memory.js +144 -17
- package/build/src/tools/network.js +6 -3
- package/build/src/tools/pages.js +13 -16
- package/build/src/tools/performance.js +57 -46
- package/build/src/tools/pwa.js +128 -0
- package/build/src/tools/screencast.js +6 -4
- package/build/src/tools/screenshot.js +192 -84
- package/build/src/tools/script.js +118 -34
- package/build/src/tools/slim/tools.js +3 -3
- package/build/src/tools/snapshot.js +5 -3
- package/build/src/tools/thirdPartyDeveloper.js +2 -2
- package/build/src/tools/tools.js +2 -0
- package/build/src/tools/webmcp.js +2 -2
- package/build/src/utils/WaitForHelper.js +299 -0
- package/build/src/utils/bytes.js +105 -0
- package/build/src/utils/logger.js +25 -11
- package/build/src/utils/polyfill.js +6 -3
- package/build/src/utils/url.js +43 -0
- package/build/src/version.js +1 -1
- package/package.json +37 -25
- package/skills/a11y-debugging/SKILL.md +2 -0
- package/skills/chrome-devtools/SKILL.md +5 -4
- package/skills/chrome-devtools-cli/SKILL.md +109 -64
- package/skills/debug-optimize-lcp/SKILL.md +9 -9
- package/skills/memory-leak-debugging/SKILL.md +14 -18
- package/skills/memory-leak-debugging/references/common-leaks.md +1 -1
- package/skills/troubleshooting/SKILL.md +1 -0
- package/build/src/WaitForHelper.js +0 -200
- package/build/src/devtools/DevToolsConnectionAdapter.js +0 -70
- package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeRead.md +0 -8
- package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeSet.md +0 -8
- package/build/src/third_party/issue-descriptions/SameSiteExcludeNavigationContextDowngrade.md +0 -8
- package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeRead.md +0 -8
- package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeSet.md +0 -8
- package/build/src/third_party/issue-descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +0 -8
- package/build/src/third_party/issue-descriptions/arInsecureContext.md +0 -7
- package/build/src/third_party/issue-descriptions/arInvalidInfoHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arInvalidRegisterOsSourceHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arInvalidRegisterOsTriggerHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arInvalidRegisterSourceHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arInvalidRegisterTriggerHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +0 -5
- package/build/src/third_party/issue-descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +0 -6
- package/build/src/third_party/issue-descriptions/arNoRegisterOsSourceHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arNoRegisterOsTriggerHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arNoRegisterSourceHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arNoRegisterTriggerHeader.md +0 -5
- package/build/src/third_party/issue-descriptions/arNoWebOrOsSupport.md +0 -4
- package/build/src/third_party/issue-descriptions/arOsSourceIgnored.md +0 -18
- package/build/src/third_party/issue-descriptions/arOsTriggerIgnored.md +0 -19
- package/build/src/third_party/issue-descriptions/arPermissionPolicyDisabled.md +0 -8
- package/build/src/third_party/issue-descriptions/arSourceAndTriggerHeaders.md +0 -9
- package/build/src/third_party/issue-descriptions/arSourceIgnored.md +0 -13
- package/build/src/third_party/issue-descriptions/arTriggerIgnored.md +0 -12
- package/build/src/third_party/issue-descriptions/arUntrustworthyReportingOrigin.md +0 -10
- package/build/src/third_party/issue-descriptions/arWebAndOsHeaders.md +0 -11
- package/build/src/utils/Mutex.js +0 -38
- package/build/src/utils/string.js +0 -37
- package/skills/memory-leak-debugging/references/compare_snapshots.js +0 -109
- package/skills/memory-leak-debugging/references/memlab.md +0 -29
|
@@ -8,6 +8,12 @@ export const commands = {
|
|
|
8
8
|
description: 'Clicks on the provided element',
|
|
9
9
|
category: 'Input automation',
|
|
10
10
|
args: {
|
|
11
|
+
pageId: {
|
|
12
|
+
name: 'pageId',
|
|
13
|
+
type: 'number',
|
|
14
|
+
description: 'Targets a specific page by ID.',
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
11
17
|
uid: {
|
|
12
18
|
name: 'uid',
|
|
13
19
|
type: 'string',
|
|
@@ -32,6 +38,12 @@ export const commands = {
|
|
|
32
38
|
description: 'Clicks at the provided coordinates (requires flag: --experimentalVision=true)',
|
|
33
39
|
category: 'Input automation',
|
|
34
40
|
args: {
|
|
41
|
+
pageId: {
|
|
42
|
+
name: 'pageId',
|
|
43
|
+
type: 'number',
|
|
44
|
+
description: 'Targets a specific page by ID.',
|
|
45
|
+
required: true,
|
|
46
|
+
},
|
|
35
47
|
x: {
|
|
36
48
|
name: 'x',
|
|
37
49
|
type: 'number',
|
|
@@ -110,6 +122,12 @@ export const commands = {
|
|
|
110
122
|
description: 'Drag an element onto another element',
|
|
111
123
|
category: 'Input automation',
|
|
112
124
|
args: {
|
|
125
|
+
pageId: {
|
|
126
|
+
name: 'pageId',
|
|
127
|
+
type: 'number',
|
|
128
|
+
description: 'Targets a specific page by ID.',
|
|
129
|
+
required: true,
|
|
130
|
+
},
|
|
113
131
|
from_uid: {
|
|
114
132
|
name: 'from_uid',
|
|
115
133
|
type: 'string',
|
|
@@ -131,9 +149,15 @@ export const commands = {
|
|
|
131
149
|
},
|
|
132
150
|
},
|
|
133
151
|
emulate: {
|
|
134
|
-
description: 'Emulates various features on the
|
|
152
|
+
description: 'Emulates various features on the target page.',
|
|
135
153
|
category: 'Emulation',
|
|
136
154
|
args: {
|
|
155
|
+
pageId: {
|
|
156
|
+
name: 'pageId',
|
|
157
|
+
type: 'number',
|
|
158
|
+
description: 'Targets a specific page by ID.',
|
|
159
|
+
required: true,
|
|
160
|
+
},
|
|
137
161
|
networkConditions: {
|
|
138
162
|
name: 'networkConditions',
|
|
139
163
|
type: 'string',
|
|
@@ -181,13 +205,19 @@ export const commands = {
|
|
|
181
205
|
},
|
|
182
206
|
},
|
|
183
207
|
evaluate_script: {
|
|
184
|
-
description: 'Evaluate a JavaScript function inside the
|
|
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.',
|
|
185
209
|
category: 'Debugging',
|
|
186
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
|
+
},
|
|
187
217
|
function: {
|
|
188
218
|
name: 'function',
|
|
189
219
|
type: 'string',
|
|
190
|
-
description: 'A JavaScript function declaration to be executed by the tool in the
|
|
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',
|
|
191
221
|
required: true,
|
|
192
222
|
},
|
|
193
223
|
args: {
|
|
@@ -208,12 +238,30 @@ export const commands = {
|
|
|
208
238
|
description: 'Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept.',
|
|
209
239
|
required: false,
|
|
210
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
|
+
},
|
|
211
253
|
},
|
|
212
254
|
},
|
|
213
255
|
execute_3p_developer_tool: {
|
|
214
256
|
description: 'Executes a tool exposed by the page. (requires flag: --categoryExperimentalThirdParty=true)',
|
|
215
257
|
category: 'Third-party',
|
|
216
258
|
args: {
|
|
259
|
+
pageId: {
|
|
260
|
+
name: 'pageId',
|
|
261
|
+
type: 'number',
|
|
262
|
+
description: 'Targets a specific page by ID.',
|
|
263
|
+
required: true,
|
|
264
|
+
},
|
|
217
265
|
toolName: {
|
|
218
266
|
name: 'toolName',
|
|
219
267
|
type: 'string',
|
|
@@ -232,6 +280,12 @@ export const commands = {
|
|
|
232
280
|
description: 'Executes a WebMCP tool exposed by the page. (requires flag: --categoryExperimentalWebmcp=true)',
|
|
233
281
|
category: 'WebMCP',
|
|
234
282
|
args: {
|
|
283
|
+
pageId: {
|
|
284
|
+
name: 'pageId',
|
|
285
|
+
type: 'number',
|
|
286
|
+
description: 'Targets a specific page by ID.',
|
|
287
|
+
required: true,
|
|
288
|
+
},
|
|
235
289
|
toolName: {
|
|
236
290
|
name: 'toolName',
|
|
237
291
|
type: 'string',
|
|
@@ -250,6 +304,12 @@ export const commands = {
|
|
|
250
304
|
description: 'Type text into an input, text area or select an option from a <select> element.',
|
|
251
305
|
category: 'Input automation',
|
|
252
306
|
args: {
|
|
307
|
+
pageId: {
|
|
308
|
+
name: 'pageId',
|
|
309
|
+
type: 'number',
|
|
310
|
+
description: 'Targets a specific page by ID.',
|
|
311
|
+
required: true,
|
|
312
|
+
},
|
|
253
313
|
uid: {
|
|
254
314
|
name: 'uid',
|
|
255
315
|
type: 'string',
|
|
@@ -274,6 +334,12 @@ export const commands = {
|
|
|
274
334
|
description: 'Gets a console message by its ID. You can get all messages by calling list_console_messages.',
|
|
275
335
|
category: 'Debugging',
|
|
276
336
|
args: {
|
|
337
|
+
pageId: {
|
|
338
|
+
name: 'pageId',
|
|
339
|
+
type: 'number',
|
|
340
|
+
description: 'Targets a specific page by ID.',
|
|
341
|
+
required: true,
|
|
342
|
+
},
|
|
277
343
|
msgid: {
|
|
278
344
|
name: 'msgid',
|
|
279
345
|
type: 'number',
|
|
@@ -308,8 +374,17 @@ export const commands = {
|
|
|
308
374
|
'objectsRetainedByConsole',
|
|
309
375
|
'objectsRetainedByEventHandlers',
|
|
310
376
|
'objectsRetainedByContexts',
|
|
377
|
+
'sharedNativeContext',
|
|
378
|
+
'noNativeContext',
|
|
379
|
+
'attributedToSpecificNativeContext',
|
|
311
380
|
],
|
|
312
381
|
},
|
|
382
|
+
objectId: {
|
|
383
|
+
name: 'objectId',
|
|
384
|
+
type: 'number',
|
|
385
|
+
description: 'The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.',
|
|
386
|
+
required: false,
|
|
387
|
+
},
|
|
313
388
|
pageIdx: {
|
|
314
389
|
name: 'pageIdx',
|
|
315
390
|
type: 'number',
|
|
@@ -344,8 +419,17 @@ export const commands = {
|
|
|
344
419
|
'objectsRetainedByConsole',
|
|
345
420
|
'objectsRetainedByEventHandlers',
|
|
346
421
|
'objectsRetainedByContexts',
|
|
422
|
+
'sharedNativeContext',
|
|
423
|
+
'noNativeContext',
|
|
424
|
+
'attributedToSpecificNativeContext',
|
|
347
425
|
],
|
|
348
426
|
},
|
|
427
|
+
objectId: {
|
|
428
|
+
name: 'objectId',
|
|
429
|
+
type: 'number',
|
|
430
|
+
description: 'The object ID (nodeId) of the specific native context to filter by when filterName is attributedToSpecificNativeContext.',
|
|
431
|
+
required: false,
|
|
432
|
+
},
|
|
349
433
|
pageIdx: {
|
|
350
434
|
name: 'pageIdx',
|
|
351
435
|
type: 'number',
|
|
@@ -418,6 +502,25 @@ export const commands = {
|
|
|
418
502
|
description: 'The node ID to get outgoing edges for.',
|
|
419
503
|
required: true,
|
|
420
504
|
},
|
|
505
|
+
sortBy: {
|
|
506
|
+
name: 'sortBy',
|
|
507
|
+
type: 'string',
|
|
508
|
+
description: 'Sort order for edges. Default is retainedSize.',
|
|
509
|
+
required: false,
|
|
510
|
+
enum: ['retainedSize', 'selfSize', 'name'],
|
|
511
|
+
},
|
|
512
|
+
retainedSize: {
|
|
513
|
+
name: 'retainedSize',
|
|
514
|
+
type: 'string',
|
|
515
|
+
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.',
|
|
516
|
+
required: false,
|
|
517
|
+
},
|
|
518
|
+
excludePrimitives: {
|
|
519
|
+
name: 'excludePrimitives',
|
|
520
|
+
type: 'boolean',
|
|
521
|
+
description: 'Whether to exclude primitive target nodes. Default is true.',
|
|
522
|
+
required: false,
|
|
523
|
+
},
|
|
421
524
|
pageIdx: {
|
|
422
525
|
name: 'pageIdx',
|
|
423
526
|
type: 'number',
|
|
@@ -432,6 +535,24 @@ export const commands = {
|
|
|
432
535
|
},
|
|
433
536
|
},
|
|
434
537
|
},
|
|
538
|
+
get_heapsnapshot_object_details: {
|
|
539
|
+
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)',
|
|
540
|
+
category: 'Memory',
|
|
541
|
+
args: {
|
|
542
|
+
filePath: {
|
|
543
|
+
name: 'filePath',
|
|
544
|
+
type: 'string',
|
|
545
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
546
|
+
required: true,
|
|
547
|
+
},
|
|
548
|
+
nodeId: {
|
|
549
|
+
name: 'nodeId',
|
|
550
|
+
type: 'number',
|
|
551
|
+
description: 'The node ID to get object details for.',
|
|
552
|
+
required: true,
|
|
553
|
+
},
|
|
554
|
+
},
|
|
555
|
+
},
|
|
435
556
|
get_heapsnapshot_retainers: {
|
|
436
557
|
description: 'Loads a memory heapsnapshot and returns retainers for a specific node ID. (requires flag: --memoryDebugging=true)',
|
|
437
558
|
category: 'Memory',
|
|
@@ -499,7 +620,7 @@ export const commands = {
|
|
|
499
620
|
},
|
|
500
621
|
},
|
|
501
622
|
get_heapsnapshot_summary: {
|
|
502
|
-
description: 'Loads a memory heapsnapshot and returns snapshot summary stats. (requires flag: --memoryDebugging=true)',
|
|
623
|
+
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)',
|
|
503
624
|
category: 'Memory',
|
|
504
625
|
args: {
|
|
505
626
|
filePath: {
|
|
@@ -514,6 +635,12 @@ export const commands = {
|
|
|
514
635
|
description: 'Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.',
|
|
515
636
|
category: 'Network',
|
|
516
637
|
args: {
|
|
638
|
+
pageId: {
|
|
639
|
+
name: 'pageId',
|
|
640
|
+
type: 'number',
|
|
641
|
+
description: 'Targets a specific page by ID.',
|
|
642
|
+
required: true,
|
|
643
|
+
},
|
|
517
644
|
reqid: {
|
|
518
645
|
name: 'reqid',
|
|
519
646
|
type: 'number',
|
|
@@ -534,10 +661,28 @@ export const commands = {
|
|
|
534
661
|
},
|
|
535
662
|
},
|
|
536
663
|
},
|
|
664
|
+
get_os_app_state: {
|
|
665
|
+
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)',
|
|
666
|
+
category: 'Progressive Web Apps',
|
|
667
|
+
args: {
|
|
668
|
+
manifestId: {
|
|
669
|
+
name: 'manifestId',
|
|
670
|
+
type: 'string',
|
|
671
|
+
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.',
|
|
672
|
+
required: true,
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
},
|
|
537
676
|
handle_dialog: {
|
|
538
677
|
description: 'If a browser dialog was opened, use this command to handle it',
|
|
539
678
|
category: 'Input automation',
|
|
540
679
|
args: {
|
|
680
|
+
pageId: {
|
|
681
|
+
name: 'pageId',
|
|
682
|
+
type: 'number',
|
|
683
|
+
description: 'Targets a specific page by ID.',
|
|
684
|
+
required: true,
|
|
685
|
+
},
|
|
541
686
|
action: {
|
|
542
687
|
name: 'action',
|
|
543
688
|
type: 'string',
|
|
@@ -557,6 +702,12 @@ export const commands = {
|
|
|
557
702
|
description: 'Hover over the provided element',
|
|
558
703
|
category: 'Input automation',
|
|
559
704
|
args: {
|
|
705
|
+
pageId: {
|
|
706
|
+
name: 'pageId',
|
|
707
|
+
type: 'number',
|
|
708
|
+
description: 'Targets a specific page by ID.',
|
|
709
|
+
required: true,
|
|
710
|
+
},
|
|
560
711
|
uid: {
|
|
561
712
|
name: 'uid',
|
|
562
713
|
type: 'string',
|
|
@@ -583,10 +734,59 @@ export const commands = {
|
|
|
583
734
|
},
|
|
584
735
|
},
|
|
585
736
|
},
|
|
737
|
+
install_pwa: {
|
|
738
|
+
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)',
|
|
739
|
+
category: 'Progressive Web Apps',
|
|
740
|
+
args: {
|
|
741
|
+
manifestId: {
|
|
742
|
+
name: 'manifestId',
|
|
743
|
+
type: 'string',
|
|
744
|
+
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.',
|
|
745
|
+
required: true,
|
|
746
|
+
},
|
|
747
|
+
installUrlOrBundleUrl: {
|
|
748
|
+
name: 'installUrlOrBundleUrl',
|
|
749
|
+
type: 'string',
|
|
750
|
+
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.',
|
|
751
|
+
required: true,
|
|
752
|
+
},
|
|
753
|
+
displayMode: {
|
|
754
|
+
name: 'displayMode',
|
|
755
|
+
type: 'string',
|
|
756
|
+
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.',
|
|
757
|
+
required: false,
|
|
758
|
+
enum: ['standalone', 'browser'],
|
|
759
|
+
},
|
|
760
|
+
},
|
|
761
|
+
},
|
|
762
|
+
launch_pwa: {
|
|
763
|
+
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)',
|
|
764
|
+
category: 'Progressive Web Apps',
|
|
765
|
+
args: {
|
|
766
|
+
manifestId: {
|
|
767
|
+
name: 'manifestId',
|
|
768
|
+
type: 'string',
|
|
769
|
+
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.',
|
|
770
|
+
required: true,
|
|
771
|
+
},
|
|
772
|
+
url: {
|
|
773
|
+
name: 'url',
|
|
774
|
+
type: 'string',
|
|
775
|
+
description: 'Optional URL within the app to open instead of the default start URL.',
|
|
776
|
+
required: false,
|
|
777
|
+
},
|
|
778
|
+
},
|
|
779
|
+
},
|
|
586
780
|
lighthouse_audit: {
|
|
587
781
|
description: 'Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace',
|
|
588
782
|
category: 'Debugging',
|
|
589
783
|
args: {
|
|
784
|
+
pageId: {
|
|
785
|
+
name: 'pageId',
|
|
786
|
+
type: 'number',
|
|
787
|
+
description: 'Targets a specific page by ID.',
|
|
788
|
+
required: true,
|
|
789
|
+
},
|
|
590
790
|
mode: {
|
|
591
791
|
name: 'mode',
|
|
592
792
|
type: 'string',
|
|
@@ -614,12 +814,25 @@ export const commands = {
|
|
|
614
814
|
list_3p_developer_tools: {
|
|
615
815
|
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)",
|
|
616
816
|
category: 'Third-party',
|
|
617
|
-
args: {
|
|
817
|
+
args: {
|
|
818
|
+
pageId: {
|
|
819
|
+
name: 'pageId',
|
|
820
|
+
type: 'number',
|
|
821
|
+
description: 'Targets a specific page by ID.',
|
|
822
|
+
required: true,
|
|
823
|
+
},
|
|
824
|
+
},
|
|
618
825
|
},
|
|
619
826
|
list_console_messages: {
|
|
620
|
-
description: 'List all console messages for the
|
|
827
|
+
description: 'List all console messages for the target page since the last navigation. This includes console messages originating from extensions content scripts.',
|
|
621
828
|
category: 'Debugging',
|
|
622
829
|
args: {
|
|
830
|
+
pageId: {
|
|
831
|
+
name: 'pageId',
|
|
832
|
+
type: 'number',
|
|
833
|
+
description: 'Targets a specific page by ID.',
|
|
834
|
+
required: true,
|
|
835
|
+
},
|
|
623
836
|
pageSize: {
|
|
624
837
|
name: 'pageSize',
|
|
625
838
|
type: 'integer',
|
|
@@ -645,6 +858,13 @@ export const commands = {
|
|
|
645
858
|
required: false,
|
|
646
859
|
default: false,
|
|
647
860
|
},
|
|
861
|
+
includeStackTraces: {
|
|
862
|
+
name: 'includeStackTraces',
|
|
863
|
+
type: 'boolean',
|
|
864
|
+
description: 'Set to true to include the stack trace for each message when available. Increases the response size.',
|
|
865
|
+
required: false,
|
|
866
|
+
default: false,
|
|
867
|
+
},
|
|
648
868
|
serviceWorkerId: {
|
|
649
869
|
name: 'serviceWorkerId',
|
|
650
870
|
type: 'string',
|
|
@@ -659,9 +879,15 @@ export const commands = {
|
|
|
659
879
|
args: {},
|
|
660
880
|
},
|
|
661
881
|
list_network_requests: {
|
|
662
|
-
description: '
|
|
882
|
+
description: 'Lists the most recent requests for the target page since the last navigation.',
|
|
663
883
|
category: 'Network',
|
|
664
884
|
args: {
|
|
885
|
+
pageId: {
|
|
886
|
+
name: 'pageId',
|
|
887
|
+
type: 'number',
|
|
888
|
+
description: 'Targets a specific page by ID.',
|
|
889
|
+
required: true,
|
|
890
|
+
},
|
|
665
891
|
pageSize: {
|
|
666
892
|
name: 'pageSize',
|
|
667
893
|
type: 'integer',
|
|
@@ -690,19 +916,32 @@ export const commands = {
|
|
|
690
916
|
},
|
|
691
917
|
},
|
|
692
918
|
list_pages: {
|
|
693
|
-
description: 'Get a list of pages open in the browser.',
|
|
919
|
+
description: 'Get a list of pages including extension service workers open in the browser.',
|
|
694
920
|
category: 'Navigation automation',
|
|
695
921
|
args: {},
|
|
696
922
|
},
|
|
697
923
|
list_webmcp_tools: {
|
|
698
924
|
description: 'Lists all WebMCP tools the page exposes. (requires flag: --categoryExperimentalWebmcp=true)',
|
|
699
925
|
category: 'WebMCP',
|
|
700
|
-
args: {
|
|
926
|
+
args: {
|
|
927
|
+
pageId: {
|
|
928
|
+
name: 'pageId',
|
|
929
|
+
type: 'number',
|
|
930
|
+
description: 'Targets a specific page by ID.',
|
|
931
|
+
required: true,
|
|
932
|
+
},
|
|
933
|
+
},
|
|
701
934
|
},
|
|
702
935
|
navigate_page: {
|
|
703
936
|
description: 'Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.',
|
|
704
937
|
category: 'Navigation automation',
|
|
705
938
|
args: {
|
|
939
|
+
pageId: {
|
|
940
|
+
name: 'pageId',
|
|
941
|
+
type: 'number',
|
|
942
|
+
description: 'Targets a specific page by ID.',
|
|
943
|
+
required: true,
|
|
944
|
+
},
|
|
706
945
|
type: {
|
|
707
946
|
name: 'type',
|
|
708
947
|
type: 'string',
|
|
@@ -777,6 +1016,12 @@ export const commands = {
|
|
|
777
1016
|
description: 'Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.',
|
|
778
1017
|
category: 'Performance',
|
|
779
1018
|
args: {
|
|
1019
|
+
pageId: {
|
|
1020
|
+
name: 'pageId',
|
|
1021
|
+
type: 'number',
|
|
1022
|
+
description: 'Targets a specific page by ID.',
|
|
1023
|
+
required: true,
|
|
1024
|
+
},
|
|
780
1025
|
insightSetId: {
|
|
781
1026
|
name: 'insightSetId',
|
|
782
1027
|
type: 'string',
|
|
@@ -792,13 +1037,19 @@ export const commands = {
|
|
|
792
1037
|
},
|
|
793
1038
|
},
|
|
794
1039
|
performance_start_trace: {
|
|
795
|
-
description: 'Start a performance trace on the
|
|
1040
|
+
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.',
|
|
796
1041
|
category: 'Performance',
|
|
797
1042
|
args: {
|
|
1043
|
+
pageId: {
|
|
1044
|
+
name: 'pageId',
|
|
1045
|
+
type: 'number',
|
|
1046
|
+
description: 'Targets a specific page by ID.',
|
|
1047
|
+
required: true,
|
|
1048
|
+
},
|
|
798
1049
|
reload: {
|
|
799
1050
|
name: 'reload',
|
|
800
1051
|
type: 'boolean',
|
|
801
|
-
description: 'Determines if, once tracing has started, the
|
|
1052
|
+
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.',
|
|
802
1053
|
required: false,
|
|
803
1054
|
default: true,
|
|
804
1055
|
},
|
|
@@ -818,9 +1069,15 @@ export const commands = {
|
|
|
818
1069
|
},
|
|
819
1070
|
},
|
|
820
1071
|
performance_stop_trace: {
|
|
821
|
-
description: 'Stop the active performance trace recording on the
|
|
1072
|
+
description: 'Stop the active performance trace recording on the target webpage.',
|
|
822
1073
|
category: 'Performance',
|
|
823
1074
|
args: {
|
|
1075
|
+
pageId: {
|
|
1076
|
+
name: 'pageId',
|
|
1077
|
+
type: 'number',
|
|
1078
|
+
description: 'Targets a specific page by ID.',
|
|
1079
|
+
required: true,
|
|
1080
|
+
},
|
|
824
1081
|
filePath: {
|
|
825
1082
|
name: 'filePath',
|
|
826
1083
|
type: 'string',
|
|
@@ -833,6 +1090,12 @@ export const commands = {
|
|
|
833
1090
|
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).',
|
|
834
1091
|
category: 'Input automation',
|
|
835
1092
|
args: {
|
|
1093
|
+
pageId: {
|
|
1094
|
+
name: 'pageId',
|
|
1095
|
+
type: 'number',
|
|
1096
|
+
description: 'Targets a specific page by ID.',
|
|
1097
|
+
required: true,
|
|
1098
|
+
},
|
|
836
1099
|
key: {
|
|
837
1100
|
name: 'key',
|
|
838
1101
|
type: 'string',
|
|
@@ -847,6 +1110,73 @@ export const commands = {
|
|
|
847
1110
|
},
|
|
848
1111
|
},
|
|
849
1112
|
},
|
|
1113
|
+
query_heapsnapshot_objects: {
|
|
1114
|
+
description: 'Loads a memory heapsnapshot and queries objects matching specific filters (className, propertyName, nodeType, retainedSize, selfSize, isDetached, sortBy). (requires flag: --memoryDebugging=true)',
|
|
1115
|
+
category: 'Memory',
|
|
1116
|
+
args: {
|
|
1117
|
+
filePath: {
|
|
1118
|
+
name: 'filePath',
|
|
1119
|
+
type: 'string',
|
|
1120
|
+
description: 'A path to a .heapsnapshot file to read.',
|
|
1121
|
+
required: true,
|
|
1122
|
+
},
|
|
1123
|
+
className: {
|
|
1124
|
+
name: 'className',
|
|
1125
|
+
type: 'string',
|
|
1126
|
+
description: 'Optional regex or text matching object class name.',
|
|
1127
|
+
required: false,
|
|
1128
|
+
},
|
|
1129
|
+
propertyName: {
|
|
1130
|
+
name: 'propertyName',
|
|
1131
|
+
type: 'string',
|
|
1132
|
+
description: 'Optional property name filter for outgoing reference edges.',
|
|
1133
|
+
required: false,
|
|
1134
|
+
},
|
|
1135
|
+
nodeType: {
|
|
1136
|
+
name: 'nodeType',
|
|
1137
|
+
type: 'string',
|
|
1138
|
+
description: 'Optional V8 node type filter (e.g. object, closure, string, array, code).',
|
|
1139
|
+
required: false,
|
|
1140
|
+
},
|
|
1141
|
+
retainedSize: {
|
|
1142
|
+
name: 'retainedSize',
|
|
1143
|
+
type: 'string',
|
|
1144
|
+
description: 'Inclusive retained size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.',
|
|
1145
|
+
required: false,
|
|
1146
|
+
},
|
|
1147
|
+
selfSize: {
|
|
1148
|
+
name: 'selfSize',
|
|
1149
|
+
type: 'string',
|
|
1150
|
+
description: 'Inclusive self size range (e.g. "1MB-2MB", "-1MB", or "1MB-"). A single value is treated as a minimum.',
|
|
1151
|
+
required: false,
|
|
1152
|
+
},
|
|
1153
|
+
isDetached: {
|
|
1154
|
+
name: 'isDetached',
|
|
1155
|
+
type: 'boolean',
|
|
1156
|
+
description: 'Whether to filter for detached DOM nodes.',
|
|
1157
|
+
required: false,
|
|
1158
|
+
},
|
|
1159
|
+
sortBy: {
|
|
1160
|
+
name: 'sortBy',
|
|
1161
|
+
type: 'string',
|
|
1162
|
+
description: 'Sort order for results. Default is retainedSize.',
|
|
1163
|
+
required: false,
|
|
1164
|
+
enum: ['retainedSize', 'selfSize', 'id'],
|
|
1165
|
+
},
|
|
1166
|
+
pageIdx: {
|
|
1167
|
+
name: 'pageIdx',
|
|
1168
|
+
type: 'number',
|
|
1169
|
+
description: 'The page index for pagination.',
|
|
1170
|
+
required: false,
|
|
1171
|
+
},
|
|
1172
|
+
pageSize: {
|
|
1173
|
+
name: 'pageSize',
|
|
1174
|
+
type: 'number',
|
|
1175
|
+
description: 'The page size for pagination.',
|
|
1176
|
+
required: false,
|
|
1177
|
+
},
|
|
1178
|
+
},
|
|
1179
|
+
},
|
|
850
1180
|
reload_extension: {
|
|
851
1181
|
description: 'Reloads an unpacked Chrome extension by its ID. (requires flag: --categoryExtensions=true)',
|
|
852
1182
|
category: 'Extensions',
|
|
@@ -860,9 +1190,15 @@ export const commands = {
|
|
|
860
1190
|
},
|
|
861
1191
|
},
|
|
862
1192
|
resize_page: {
|
|
863
|
-
description: "Resizes the
|
|
1193
|
+
description: "Resizes the page's window so that the page has specified dimension",
|
|
864
1194
|
category: 'Emulation',
|
|
865
1195
|
args: {
|
|
1196
|
+
pageId: {
|
|
1197
|
+
name: 'pageId',
|
|
1198
|
+
type: 'number',
|
|
1199
|
+
description: 'Targets a specific page by ID.',
|
|
1200
|
+
required: true,
|
|
1201
|
+
},
|
|
866
1202
|
width: {
|
|
867
1203
|
name: 'width',
|
|
868
1204
|
type: 'number',
|
|
@@ -878,9 +1214,15 @@ export const commands = {
|
|
|
878
1214
|
},
|
|
879
1215
|
},
|
|
880
1216
|
screencast_start: {
|
|
881
|
-
description: 'Starts recording a screencast (video) of the
|
|
1217
|
+
description: 'Starts recording a screencast (video) of the target page in specified format. (requires flag: --experimentalScreencast=true)',
|
|
882
1218
|
category: 'Debugging',
|
|
883
1219
|
args: {
|
|
1220
|
+
pageId: {
|
|
1221
|
+
name: 'pageId',
|
|
1222
|
+
type: 'number',
|
|
1223
|
+
description: 'Targets a specific page by ID.',
|
|
1224
|
+
required: true,
|
|
1225
|
+
},
|
|
884
1226
|
filePath: {
|
|
885
1227
|
name: 'filePath',
|
|
886
1228
|
type: 'string',
|
|
@@ -890,9 +1232,16 @@ export const commands = {
|
|
|
890
1232
|
},
|
|
891
1233
|
},
|
|
892
1234
|
screencast_stop: {
|
|
893
|
-
description: 'Stops the active screencast recording on the
|
|
1235
|
+
description: 'Stops the active screencast recording on the target page. (requires flag: --experimentalScreencast=true)',
|
|
894
1236
|
category: 'Debugging',
|
|
895
|
-
args: {
|
|
1237
|
+
args: {
|
|
1238
|
+
pageId: {
|
|
1239
|
+
name: 'pageId',
|
|
1240
|
+
type: 'number',
|
|
1241
|
+
description: 'Targets a specific page by ID.',
|
|
1242
|
+
required: true,
|
|
1243
|
+
},
|
|
1244
|
+
},
|
|
896
1245
|
},
|
|
897
1246
|
select_page: {
|
|
898
1247
|
description: 'Select a page as a context for future tool calls.',
|
|
@@ -913,9 +1262,15 @@ export const commands = {
|
|
|
913
1262
|
},
|
|
914
1263
|
},
|
|
915
1264
|
take_heapsnapshot: {
|
|
916
|
-
description: 'Capture a heap snapshot of the
|
|
1265
|
+
description: 'Capture a heap snapshot of the target page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.',
|
|
917
1266
|
category: 'Memory',
|
|
918
1267
|
args: {
|
|
1268
|
+
pageId: {
|
|
1269
|
+
name: 'pageId',
|
|
1270
|
+
type: 'number',
|
|
1271
|
+
description: 'Targets a specific page by ID.',
|
|
1272
|
+
required: true,
|
|
1273
|
+
},
|
|
919
1274
|
filePath: {
|
|
920
1275
|
name: 'filePath',
|
|
921
1276
|
type: 'string',
|
|
@@ -928,6 +1283,12 @@ export const commands = {
|
|
|
928
1283
|
description: 'Take a screenshot of the page or element.',
|
|
929
1284
|
category: 'Debugging',
|
|
930
1285
|
args: {
|
|
1286
|
+
pageId: {
|
|
1287
|
+
name: 'pageId',
|
|
1288
|
+
type: 'number',
|
|
1289
|
+
description: 'Targets a specific page by ID.',
|
|
1290
|
+
required: true,
|
|
1291
|
+
},
|
|
931
1292
|
format: {
|
|
932
1293
|
name: 'format',
|
|
933
1294
|
type: 'string',
|
|
@@ -963,9 +1324,15 @@ export const commands = {
|
|
|
963
1324
|
},
|
|
964
1325
|
},
|
|
965
1326
|
take_snapshot: {
|
|
966
|
-
description: 'Take a text snapshot of the
|
|
1327
|
+
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).',
|
|
967
1328
|
category: 'Debugging',
|
|
968
1329
|
args: {
|
|
1330
|
+
pageId: {
|
|
1331
|
+
name: 'pageId',
|
|
1332
|
+
type: 'number',
|
|
1333
|
+
description: 'Targets a specific page by ID.',
|
|
1334
|
+
required: true,
|
|
1335
|
+
},
|
|
969
1336
|
verbose: {
|
|
970
1337
|
name: 'verbose',
|
|
971
1338
|
type: 'boolean',
|
|
@@ -996,6 +1363,12 @@ export const commands = {
|
|
|
996
1363
|
description: 'Type text using keyboard into a previously focused input',
|
|
997
1364
|
category: 'Input automation',
|
|
998
1365
|
args: {
|
|
1366
|
+
pageId: {
|
|
1367
|
+
name: 'pageId',
|
|
1368
|
+
type: 'number',
|
|
1369
|
+
description: 'Targets a specific page by ID.',
|
|
1370
|
+
required: true,
|
|
1371
|
+
},
|
|
999
1372
|
text: {
|
|
1000
1373
|
name: 'text',
|
|
1001
1374
|
type: 'string',
|
|
@@ -1022,20 +1395,38 @@ export const commands = {
|
|
|
1022
1395
|
},
|
|
1023
1396
|
},
|
|
1024
1397
|
},
|
|
1398
|
+
uninstall_pwa: {
|
|
1399
|
+
description: 'Uninstalls a Progressive Web App identified by its manifest ID and closes any open app windows. (requires flag: --categoryPwa=true)',
|
|
1400
|
+
category: 'Progressive Web Apps',
|
|
1401
|
+
args: {
|
|
1402
|
+
manifestId: {
|
|
1403
|
+
name: 'manifestId',
|
|
1404
|
+
type: 'string',
|
|
1405
|
+
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.',
|
|
1406
|
+
required: true,
|
|
1407
|
+
},
|
|
1408
|
+
},
|
|
1409
|
+
},
|
|
1025
1410
|
upload_file: {
|
|
1026
1411
|
description: 'Upload a file through a provided element.',
|
|
1027
1412
|
category: 'Input automation',
|
|
1028
1413
|
args: {
|
|
1414
|
+
pageId: {
|
|
1415
|
+
name: 'pageId',
|
|
1416
|
+
type: 'number',
|
|
1417
|
+
description: 'Targets a specific page by ID.',
|
|
1418
|
+
required: true,
|
|
1419
|
+
},
|
|
1029
1420
|
uid: {
|
|
1030
1421
|
name: 'uid',
|
|
1031
1422
|
type: 'string',
|
|
1032
1423
|
description: 'The uid of the file input element or an element that will open file chooser on the page from the page content snapshot',
|
|
1033
1424
|
required: true,
|
|
1034
1425
|
},
|
|
1035
|
-
|
|
1036
|
-
name: '
|
|
1037
|
-
type: '
|
|
1038
|
-
description: '
|
|
1426
|
+
filePaths: {
|
|
1427
|
+
name: 'filePaths',
|
|
1428
|
+
type: 'array',
|
|
1429
|
+
description: 'One or more files paths to upload. File paths have to be local to the browser instance (not the MCP).',
|
|
1039
1430
|
required: true,
|
|
1040
1431
|
},
|
|
1041
1432
|
includeSnapshot: {
|
|
@@ -1047,4 +1438,4 @@ export const commands = {
|
|
|
1047
1438
|
},
|
|
1048
1439
|
},
|
|
1049
1440
|
};
|
|
1050
|
-
//# sourceMappingURL=
|
|
1441
|
+
//# sourceMappingURL=cli-options.js.map
|