@vibebrowser/chrome-devtools-mcp 0.26.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.
Files changed (294) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +873 -0
  3. package/build/src/DevToolsConnectionAdapter.js +70 -0
  4. package/build/src/DevtoolsUtils.js +295 -0
  5. package/build/src/HeapSnapshotManager.js +110 -0
  6. package/build/src/McpContext.js +605 -0
  7. package/build/src/McpPage.js +315 -0
  8. package/build/src/McpResponse.js +858 -0
  9. package/build/src/Mutex.js +38 -0
  10. package/build/src/PageCollector.js +297 -0
  11. package/build/src/SlimMcpResponse.js +19 -0
  12. package/build/src/TextSnapshot.js +236 -0
  13. package/build/src/ToolHandler.js +217 -0
  14. package/build/src/WaitForHelper.js +190 -0
  15. package/build/src/bin/check-latest-version.js +50 -0
  16. package/build/src/bin/chrome-devtools-cli-options.js +840 -0
  17. package/build/src/bin/chrome-devtools-mcp-cli-options.js +350 -0
  18. package/build/src/bin/chrome-devtools-mcp-main.js +94 -0
  19. package/build/src/bin/chrome-devtools-mcp.js +31 -0
  20. package/build/src/bin/chrome-devtools.js +189 -0
  21. package/build/src/bin/install-service.js +246 -0
  22. package/build/src/bin/service/chrome-devtools-mcp.service.template +17 -0
  23. package/build/src/bin/service/com.vibebrowser.chrome-devtools-mcp.plist.template +37 -0
  24. package/build/src/browser.js +204 -0
  25. package/build/src/daemon/client.js +154 -0
  26. package/build/src/daemon/daemon.js +204 -0
  27. package/build/src/daemon/types.js +7 -0
  28. package/build/src/daemon/utils.js +115 -0
  29. package/build/src/formatters/ConsoleFormatter.js +288 -0
  30. package/build/src/formatters/HeapSnapshotFormatter.js +54 -0
  31. package/build/src/formatters/IssueFormatter.js +193 -0
  32. package/build/src/formatters/NetworkFormatter.js +236 -0
  33. package/build/src/formatters/SnapshotFormatter.js +135 -0
  34. package/build/src/index.js +140 -0
  35. package/build/src/issue-descriptions.js +40 -0
  36. package/build/src/logger.js +37 -0
  37. package/build/src/polyfill.js +8 -0
  38. package/build/src/telemetry/ClearcutLogger.js +169 -0
  39. package/build/src/telemetry/WatchdogClient.js +61 -0
  40. package/build/src/telemetry/errors.js +18 -0
  41. package/build/src/telemetry/flagUtils.js +89 -0
  42. package/build/src/telemetry/metricsRegistry.js +89 -0
  43. package/build/src/telemetry/persistence.js +72 -0
  44. package/build/src/telemetry/transformation.js +134 -0
  45. package/build/src/telemetry/types.js +31 -0
  46. package/build/src/telemetry/watchdog/ClearcutSender.js +205 -0
  47. package/build/src/telemetry/watchdog/main.js +128 -0
  48. package/build/src/third_party/devtools-formatter-worker.js +8 -0
  49. package/build/src/third_party/devtools-heap-snapshot-worker.js +8 -0
  50. package/build/src/third_party/index.js +32 -0
  51. package/build/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  52. package/build/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
  53. package/build/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  54. package/build/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
  55. package/build/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  56. package/build/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
  57. package/build/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  58. package/build/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
  59. package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
  60. package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
  61. package/build/src/third_party/issue-descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
  62. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  63. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  64. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  65. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  66. package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  67. package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  68. package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
  69. package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
  70. package/build/src/third_party/issue-descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
  71. package/build/src/third_party/issue-descriptions/arInsecureContext.md +7 -0
  72. package/build/src/third_party/issue-descriptions/arInvalidInfoHeader.md +5 -0
  73. package/build/src/third_party/issue-descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
  74. package/build/src/third_party/issue-descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
  75. package/build/src/third_party/issue-descriptions/arInvalidRegisterSourceHeader.md +5 -0
  76. package/build/src/third_party/issue-descriptions/arInvalidRegisterTriggerHeader.md +5 -0
  77. package/build/src/third_party/issue-descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
  78. package/build/src/third_party/issue-descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
  79. package/build/src/third_party/issue-descriptions/arNoRegisterOsSourceHeader.md +5 -0
  80. package/build/src/third_party/issue-descriptions/arNoRegisterOsTriggerHeader.md +5 -0
  81. package/build/src/third_party/issue-descriptions/arNoRegisterSourceHeader.md +5 -0
  82. package/build/src/third_party/issue-descriptions/arNoRegisterTriggerHeader.md +5 -0
  83. package/build/src/third_party/issue-descriptions/arNoWebOrOsSupport.md +4 -0
  84. package/build/src/third_party/issue-descriptions/arOsSourceIgnored.md +18 -0
  85. package/build/src/third_party/issue-descriptions/arOsTriggerIgnored.md +19 -0
  86. package/build/src/third_party/issue-descriptions/arPermissionPolicyDisabled.md +8 -0
  87. package/build/src/third_party/issue-descriptions/arSourceAndTriggerHeaders.md +9 -0
  88. package/build/src/third_party/issue-descriptions/arSourceIgnored.md +13 -0
  89. package/build/src/third_party/issue-descriptions/arTriggerIgnored.md +12 -0
  90. package/build/src/third_party/issue-descriptions/arUntrustworthyReportingOrigin.md +10 -0
  91. package/build/src/third_party/issue-descriptions/arWebAndOsHeaders.md +11 -0
  92. package/build/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
  93. package/build/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  94. package/build/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  95. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
  96. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
  97. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
  98. package/build/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
  99. package/build/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
  100. package/build/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
  101. package/build/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
  102. package/build/src/third_party/issue-descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
  103. package/build/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
  104. package/build/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
  105. package/build/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
  106. package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
  107. package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
  108. package/build/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
  109. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +4 -0
  110. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +4 -0
  111. package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
  112. package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
  113. package/build/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
  114. package/build/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
  115. package/build/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
  116. package/build/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  117. package/build/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
  118. package/build/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
  119. package/build/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  120. package/build/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  121. package/build/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
  122. package/build/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
  123. package/build/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
  124. package/build/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +8 -0
  125. package/build/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
  126. package/build/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
  127. package/build/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  128. package/build/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
  129. package/build/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
  130. package/build/src/third_party/issue-descriptions/deprecation.md +3 -0
  131. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  132. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  133. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  134. package/build/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  135. package/build/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
  136. package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  137. package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  138. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  139. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  140. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  141. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  142. package/build/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  143. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  144. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  145. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  146. package/build/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  147. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  148. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  149. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  150. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  151. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  152. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  153. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  154. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  155. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  156. package/build/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
  157. package/build/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
  158. package/build/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  159. package/build/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
  160. package/build/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  161. package/build/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  162. package/build/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  163. package/build/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
  164. package/build/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  165. package/build/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
  166. package/build/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
  167. package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
  168. package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
  169. package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
  170. package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
  171. package/build/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
  172. package/build/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
  173. package/build/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
  174. package/build/src/third_party/issue-descriptions/heavyAd.md +10 -0
  175. package/build/src/third_party/issue-descriptions/mixedContent.md +5 -0
  176. package/build/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
  177. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
  178. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
  179. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
  180. package/build/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
  181. package/build/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
  182. package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
  183. package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
  184. package/build/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
  185. package/build/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
  186. package/build/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
  187. package/build/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
  188. package/build/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
  189. package/build/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
  190. package/build/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
  191. package/build/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
  192. package/build/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
  193. package/build/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
  194. package/build/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
  195. package/build/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
  196. package/build/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
  197. package/build/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
  198. package/build/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
  199. package/build/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
  200. package/build/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  201. package/build/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
  202. package/build/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
  203. package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  204. package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  205. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  206. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  207. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  208. package/build/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  209. package/build/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
  210. package/build/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
  211. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
  212. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
  213. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
  214. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
  215. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
  216. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
  217. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
  218. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
  219. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
  220. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
  221. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
  222. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  223. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
  224. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
  225. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  226. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
  227. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
  228. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
  229. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
  230. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
  231. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
  232. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
  233. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
  234. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
  235. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
  236. package/build/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
  237. package/build/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
  238. package/build/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
  239. package/build/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
  240. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
  241. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
  242. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
  243. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
  244. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
  245. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
  246. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
  247. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
  248. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
  249. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
  250. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
  251. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
  252. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
  253. package/build/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
  254. package/build/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
  255. package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
  256. package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
  257. package/build/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
  258. package/build/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
  259. package/build/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
  260. package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
  261. package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
  262. package/build/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
  263. package/build/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
  264. package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +61598 -0
  265. package/build/src/tools/ToolDefinition.js +73 -0
  266. package/build/src/tools/categories.js +36 -0
  267. package/build/src/tools/console.js +91 -0
  268. package/build/src/tools/emulation.js +57 -0
  269. package/build/src/tools/extensions.js +96 -0
  270. package/build/src/tools/input.js +461 -0
  271. package/build/src/tools/lighthouse.js +131 -0
  272. package/build/src/tools/memory.js +106 -0
  273. package/build/src/tools/network.js +125 -0
  274. package/build/src/tools/pages.js +411 -0
  275. package/build/src/tools/performance.js +196 -0
  276. package/build/src/tools/screencast.js +95 -0
  277. package/build/src/tools/screenshot.js +87 -0
  278. package/build/src/tools/script.js +151 -0
  279. package/build/src/tools/slim/tools.js +85 -0
  280. package/build/src/tools/snapshot.js +60 -0
  281. package/build/src/tools/thirdPartyDeveloper.js +75 -0
  282. package/build/src/tools/tools.js +56 -0
  283. package/build/src/tools/webmcp.js +64 -0
  284. package/build/src/trace-processing/parse.js +85 -0
  285. package/build/src/types.js +7 -0
  286. package/build/src/utils/check-for-updates.js +74 -0
  287. package/build/src/utils/files.js +18 -0
  288. package/build/src/utils/id.js +16 -0
  289. package/build/src/utils/keyboard.js +297 -0
  290. package/build/src/utils/pagination.js +50 -0
  291. package/build/src/utils/string.js +37 -0
  292. package/build/src/utils/types.js +7 -0
  293. package/build/src/version.js +10 -0
  294. package/package.json +93 -0
@@ -0,0 +1,840 @@
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
+ uid: {
12
+ name: 'uid',
13
+ type: 'string',
14
+ description: 'The uid of an element on the page from the page content snapshot',
15
+ required: true,
16
+ },
17
+ dblClick: {
18
+ name: 'dblClick',
19
+ type: 'boolean',
20
+ description: 'Set to true for double clicks. Default is false.',
21
+ required: false,
22
+ },
23
+ includeSnapshot: {
24
+ name: 'includeSnapshot',
25
+ type: 'boolean',
26
+ description: 'Whether to include a snapshot in the response. Default is false.',
27
+ required: false,
28
+ },
29
+ },
30
+ },
31
+ click_at: {
32
+ description: 'Clicks at the provided coordinates (requires flag: --experimentalVision=true)',
33
+ category: 'Input automation',
34
+ args: {
35
+ x: {
36
+ name: 'x',
37
+ type: 'number',
38
+ description: 'The x coordinate',
39
+ required: true,
40
+ },
41
+ y: {
42
+ name: 'y',
43
+ type: 'number',
44
+ description: 'The y coordinate',
45
+ required: true,
46
+ },
47
+ dblClick: {
48
+ name: 'dblClick',
49
+ type: 'boolean',
50
+ description: 'Set to true for double clicks. Default is false.',
51
+ required: false,
52
+ },
53
+ includeSnapshot: {
54
+ name: 'includeSnapshot',
55
+ type: 'boolean',
56
+ description: 'Whether to include a snapshot in the response. Default is false.',
57
+ required: false,
58
+ },
59
+ },
60
+ },
61
+ close_page: {
62
+ description: 'Closes the page by its index. The last open page cannot be closed.',
63
+ category: 'Navigation automation',
64
+ args: {
65
+ pageId: {
66
+ name: 'pageId',
67
+ type: 'number',
68
+ description: 'The ID of the page to close. Call list_pages to list pages.',
69
+ required: true,
70
+ },
71
+ },
72
+ },
73
+ drag: {
74
+ description: 'Drag an element onto another element',
75
+ category: 'Input automation',
76
+ args: {
77
+ from_uid: {
78
+ name: 'from_uid',
79
+ type: 'string',
80
+ description: 'The uid of the element to drag',
81
+ required: true,
82
+ },
83
+ to_uid: {
84
+ name: 'to_uid',
85
+ type: 'string',
86
+ description: 'The uid of the element to drop into',
87
+ required: true,
88
+ },
89
+ includeSnapshot: {
90
+ name: 'includeSnapshot',
91
+ type: 'boolean',
92
+ description: 'Whether to include a snapshot in the response. Default is false.',
93
+ required: false,
94
+ },
95
+ },
96
+ },
97
+ emulate: {
98
+ description: 'Emulates various features on the selected page.',
99
+ category: 'Emulation',
100
+ args: {
101
+ networkConditions: {
102
+ name: 'networkConditions',
103
+ type: 'string',
104
+ description: 'Throttle network. Omit to disable throttling.',
105
+ required: false,
106
+ enum: ['Offline', 'Slow 3G', 'Fast 3G', 'Slow 4G', 'Fast 4G'],
107
+ },
108
+ cpuThrottlingRate: {
109
+ name: 'cpuThrottlingRate',
110
+ type: 'number',
111
+ description: 'Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling',
112
+ required: false,
113
+ },
114
+ geolocation: {
115
+ name: 'geolocation',
116
+ type: 'string',
117
+ description: 'Geolocation (`<latitude>x<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override.',
118
+ required: false,
119
+ },
120
+ userAgent: {
121
+ name: 'userAgent',
122
+ type: 'string',
123
+ description: 'User agent to emulate. Set to empty string to clear the user agent override.',
124
+ required: false,
125
+ },
126
+ colorScheme: {
127
+ name: 'colorScheme',
128
+ type: 'string',
129
+ description: 'Emulate the dark or the light mode. Set to "auto" to reset to the default.',
130
+ required: false,
131
+ enum: ['dark', 'light', 'auto'],
132
+ },
133
+ viewport: {
134
+ name: 'viewport',
135
+ type: 'string',
136
+ description: "Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode.",
137
+ required: false,
138
+ },
139
+ },
140
+ },
141
+ evaluate_script: {
142
+ description: 'Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON,\nso returned values have to be JSON-serializable.',
143
+ category: 'Debugging',
144
+ args: {
145
+ function: {
146
+ name: 'function',
147
+ type: 'string',
148
+ description: 'A JavaScript function declaration to be executed by the tool in the currently selected page.\nExample without arguments: `() => {\n return document.title\n}` or `async () => {\n return await fetch("example.com")\n}`.\nExample with arguments: `(el) => {\n return el.innerText;\n}`\n',
149
+ required: true,
150
+ },
151
+ args: {
152
+ name: 'args',
153
+ type: 'array',
154
+ description: 'An optional list of arguments to pass to the function.',
155
+ required: false,
156
+ },
157
+ filePath: {
158
+ name: 'filePath',
159
+ type: 'string',
160
+ description: 'The absolute or relative path to a file to save the script output to. If omitted, the output is returned inline.',
161
+ required: false,
162
+ },
163
+ dialogAction: {
164
+ name: 'dialogAction',
165
+ type: 'string',
166
+ description: 'Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept.',
167
+ required: false,
168
+ },
169
+ },
170
+ },
171
+ execute_3p_developer_tool: {
172
+ description: 'Executes a tool exposed by the page. (requires flag: --categoryExperimentalThirdParty=true)',
173
+ category: 'Third-party',
174
+ args: {
175
+ toolName: {
176
+ name: 'toolName',
177
+ type: 'string',
178
+ description: 'The name of the tool to execute',
179
+ required: true,
180
+ },
181
+ params: {
182
+ name: 'params',
183
+ type: 'string',
184
+ description: 'The JSON-stringified parameters to pass to the tool',
185
+ required: false,
186
+ },
187
+ },
188
+ },
189
+ execute_webmcp_tool: {
190
+ description: 'Executes a WebMCP tool exposed by the page. (requires flag: --categoryExperimentalWebmcp=true)',
191
+ category: 'WebMCP',
192
+ args: {
193
+ toolName: {
194
+ name: 'toolName',
195
+ type: 'string',
196
+ description: 'The name of the WebMCP tool to execute',
197
+ required: true,
198
+ },
199
+ input: {
200
+ name: 'input',
201
+ type: 'string',
202
+ description: 'The JSON-stringified parameters to pass to the WebMCP tool',
203
+ required: false,
204
+ },
205
+ },
206
+ },
207
+ fill: {
208
+ description: 'Type text into an input, text area or select an option from a <select> element.',
209
+ category: 'Input automation',
210
+ args: {
211
+ uid: {
212
+ name: 'uid',
213
+ type: 'string',
214
+ description: 'The uid of an element on the page from the page content snapshot',
215
+ required: true,
216
+ },
217
+ value: {
218
+ name: 'value',
219
+ type: 'string',
220
+ description: 'The value to fill in. "true" or "false" for checkboxes and toggles, "true" for radio buttons.',
221
+ required: true,
222
+ },
223
+ includeSnapshot: {
224
+ name: 'includeSnapshot',
225
+ type: 'boolean',
226
+ description: 'Whether to include a snapshot in the response. Default is false.',
227
+ required: false,
228
+ },
229
+ },
230
+ },
231
+ get_console_message: {
232
+ description: 'Gets a console message by its ID. You can get all messages by calling list_console_messages.',
233
+ category: 'Debugging',
234
+ args: {
235
+ msgid: {
236
+ name: 'msgid',
237
+ type: 'number',
238
+ description: 'The msgid of a console message on the page from the listed console messages',
239
+ required: true,
240
+ },
241
+ },
242
+ },
243
+ get_memory_snapshot_details: {
244
+ description: 'Loads a memory heapsnapshot and returns all available information including statistics, static data, and aggregated node information. Supports pagination for aggregates. (requires flag: --experimentalMemory=true)',
245
+ category: 'Memory',
246
+ args: {
247
+ filePath: {
248
+ name: 'filePath',
249
+ type: 'string',
250
+ description: 'A path to a .heapsnapshot file to read.',
251
+ required: true,
252
+ },
253
+ pageIdx: {
254
+ name: 'pageIdx',
255
+ type: 'number',
256
+ description: 'The page index for pagination of aggregates.',
257
+ required: false,
258
+ },
259
+ pageSize: {
260
+ name: 'pageSize',
261
+ type: 'number',
262
+ description: 'The page size for pagination of aggregates.',
263
+ required: false,
264
+ },
265
+ },
266
+ },
267
+ get_network_request: {
268
+ description: 'Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.',
269
+ category: 'Network',
270
+ args: {
271
+ reqid: {
272
+ name: 'reqid',
273
+ type: 'number',
274
+ description: 'The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.',
275
+ required: false,
276
+ },
277
+ requestFilePath: {
278
+ name: 'requestFilePath',
279
+ type: 'string',
280
+ description: 'The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.',
281
+ required: false,
282
+ },
283
+ responseFilePath: {
284
+ name: 'responseFilePath',
285
+ type: 'string',
286
+ description: 'The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.',
287
+ required: false,
288
+ },
289
+ },
290
+ },
291
+ get_nodes_by_class: {
292
+ description: 'Loads a memory heapsnapshot and returns instances of a specific class with their stable IDs. (requires flag: --experimentalMemory=true)',
293
+ category: 'Memory',
294
+ args: {
295
+ filePath: {
296
+ name: 'filePath',
297
+ type: 'string',
298
+ description: 'A path to a .heapsnapshot file to read.',
299
+ required: true,
300
+ },
301
+ uid: {
302
+ name: 'uid',
303
+ type: 'number',
304
+ description: 'The unique UID for the class, obtained from aggregates listing.',
305
+ required: true,
306
+ },
307
+ pageIdx: {
308
+ name: 'pageIdx',
309
+ type: 'number',
310
+ description: 'The page index for pagination.',
311
+ required: false,
312
+ },
313
+ pageSize: {
314
+ name: 'pageSize',
315
+ type: 'number',
316
+ description: 'The page size for pagination.',
317
+ required: false,
318
+ },
319
+ },
320
+ },
321
+ handle_dialog: {
322
+ description: 'If a browser dialog was opened, use this command to handle it',
323
+ category: 'Input automation',
324
+ args: {
325
+ action: {
326
+ name: 'action',
327
+ type: 'string',
328
+ description: 'Whether to dismiss or accept the dialog',
329
+ required: true,
330
+ enum: ['accept', 'dismiss'],
331
+ },
332
+ promptText: {
333
+ name: 'promptText',
334
+ type: 'string',
335
+ description: 'Optional prompt text to enter into the dialog.',
336
+ required: false,
337
+ },
338
+ },
339
+ },
340
+ hover: {
341
+ description: 'Hover over the provided element',
342
+ category: 'Input automation',
343
+ args: {
344
+ uid: {
345
+ name: 'uid',
346
+ type: 'string',
347
+ description: 'The uid of an element on the page from the page content snapshot',
348
+ required: true,
349
+ },
350
+ includeSnapshot: {
351
+ name: 'includeSnapshot',
352
+ type: 'boolean',
353
+ description: 'Whether to include a snapshot in the response. Default is false.',
354
+ required: false,
355
+ },
356
+ },
357
+ },
358
+ install_extension: {
359
+ description: 'Installs a Chrome extension from the given path. (requires flag: --categoryExtensions=true)',
360
+ category: 'Extensions',
361
+ args: {
362
+ path: {
363
+ name: 'path',
364
+ type: 'string',
365
+ description: 'Absolute path to the unpacked extension folder.',
366
+ required: true,
367
+ },
368
+ },
369
+ },
370
+ lighthouse_audit: {
371
+ description: 'Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace',
372
+ category: 'Debugging',
373
+ args: {
374
+ mode: {
375
+ name: 'mode',
376
+ type: 'string',
377
+ description: '"navigation" reloads & audits. "snapshot" analyzes current state.',
378
+ required: false,
379
+ default: 'navigation',
380
+ enum: ['navigation', 'snapshot'],
381
+ },
382
+ device: {
383
+ name: 'device',
384
+ type: 'string',
385
+ description: 'Device to emulate.',
386
+ required: false,
387
+ default: 'desktop',
388
+ enum: ['desktop', 'mobile'],
389
+ },
390
+ outputDirPath: {
391
+ name: 'outputDirPath',
392
+ type: 'string',
393
+ description: 'Directory for reports. If omitted, uses temporary files.',
394
+ required: false,
395
+ },
396
+ },
397
+ },
398
+ list_3p_developer_tools: {
399
+ description: "Lists all third-party developer tools the page exposes for providing runtime information.\n Third-party developer tools can be called via the 'execute_3p_developer_tool()' MCP tool.\n Alternatively, third-party developer tools can be executed by calling 'evaluate_script' and adding the\n following command to the script:\n 'window.__dtmcp.executeTool(toolName, params)'\n This might be helpful when the third-party developer tools return non-serializable values or when composing\n third-party developer tools with additional functionality. (requires flag: --categoryExperimentalThirdParty=true)",
400
+ category: 'Third-party',
401
+ args: {},
402
+ },
403
+ list_console_messages: {
404
+ description: 'List all console messages for the currently selected page since the last navigation.',
405
+ category: 'Debugging',
406
+ args: {
407
+ pageSize: {
408
+ name: 'pageSize',
409
+ type: 'integer',
410
+ description: 'Maximum number of messages to return. When omitted, returns all messages.',
411
+ required: false,
412
+ },
413
+ pageIdx: {
414
+ name: 'pageIdx',
415
+ type: 'integer',
416
+ description: 'Page number to return (0-based). When omitted, returns the first page.',
417
+ required: false,
418
+ },
419
+ types: {
420
+ name: 'types',
421
+ type: 'array',
422
+ description: 'Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.',
423
+ required: false,
424
+ },
425
+ includePreservedMessages: {
426
+ name: 'includePreservedMessages',
427
+ type: 'boolean',
428
+ description: 'Set to true to return the preserved messages over the last 3 navigations.',
429
+ required: false,
430
+ default: false,
431
+ },
432
+ },
433
+ },
434
+ list_extensions: {
435
+ description: 'Lists all the Chrome extensions installed in the browser. This includes their name, ID, version, and enabled status. (requires flag: --categoryExtensions=true)',
436
+ category: 'Extensions',
437
+ args: {},
438
+ },
439
+ list_network_requests: {
440
+ description: 'List all requests for the currently selected page since the last navigation.',
441
+ category: 'Network',
442
+ args: {
443
+ pageSize: {
444
+ name: 'pageSize',
445
+ type: 'integer',
446
+ description: 'Maximum number of requests to return. When omitted, returns all requests.',
447
+ required: false,
448
+ },
449
+ pageIdx: {
450
+ name: 'pageIdx',
451
+ type: 'integer',
452
+ description: 'Page number to return (0-based). When omitted, returns the first page.',
453
+ required: false,
454
+ },
455
+ resourceTypes: {
456
+ name: 'resourceTypes',
457
+ type: 'array',
458
+ description: 'Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests.',
459
+ required: false,
460
+ },
461
+ includePreservedRequests: {
462
+ name: 'includePreservedRequests',
463
+ type: 'boolean',
464
+ description: 'Set to true to return the preserved requests over the last 3 navigations.',
465
+ required: false,
466
+ default: false,
467
+ },
468
+ },
469
+ },
470
+ list_pages: {
471
+ description: 'Get a list of pages open in the browser.',
472
+ category: 'Navigation automation',
473
+ args: {},
474
+ },
475
+ list_webmcp_tools: {
476
+ description: 'Lists all WebMCP tools the page exposes. (requires flag: --categoryExperimentalWebmcp=true)',
477
+ category: 'WebMCP',
478
+ args: {},
479
+ },
480
+ load_memory_snapshot: {
481
+ description: 'Loads a memory heapsnapshot and returns snapshot summary stats. (requires flag: --experimentalMemory=true)',
482
+ category: 'Memory',
483
+ args: {
484
+ filePath: {
485
+ name: 'filePath',
486
+ type: 'string',
487
+ description: 'A path to a .heapsnapshot file to read.',
488
+ required: true,
489
+ },
490
+ },
491
+ },
492
+ navigate_page: {
493
+ description: 'Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.',
494
+ category: 'Navigation automation',
495
+ args: {
496
+ type: {
497
+ name: 'type',
498
+ type: 'string',
499
+ description: 'Navigate the page by URL, back or forward in history, or reload.',
500
+ required: false,
501
+ enum: ['url', 'back', 'forward', 'reload'],
502
+ },
503
+ url: {
504
+ name: 'url',
505
+ type: 'string',
506
+ description: 'Target URL (only type=url)',
507
+ required: false,
508
+ },
509
+ ignoreCache: {
510
+ name: 'ignoreCache',
511
+ type: 'boolean',
512
+ description: 'Whether to ignore cache on reload.',
513
+ required: false,
514
+ },
515
+ handleBeforeUnload: {
516
+ name: 'handleBeforeUnload',
517
+ type: 'string',
518
+ description: 'Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.',
519
+ required: false,
520
+ enum: ['accept', 'decline'],
521
+ },
522
+ initScript: {
523
+ name: 'initScript',
524
+ type: 'string',
525
+ description: 'A JavaScript script to be executed on each new document before any other scripts for the next navigation.',
526
+ required: false,
527
+ },
528
+ timeout: {
529
+ name: 'timeout',
530
+ type: 'integer',
531
+ description: 'Maximum wait time in milliseconds. If set to 0, the default timeout will be used.',
532
+ required: false,
533
+ },
534
+ },
535
+ },
536
+ new_page: {
537
+ description: 'Open a new tab and load a URL. Use project URL if not specified otherwise.',
538
+ category: 'Navigation automation',
539
+ args: {
540
+ url: {
541
+ name: 'url',
542
+ type: 'string',
543
+ description: 'URL to load in a new page.',
544
+ required: true,
545
+ },
546
+ background: {
547
+ name: 'background',
548
+ type: 'boolean',
549
+ description: 'Whether to open the page in the background without bringing it to the front. Default is false (foreground).',
550
+ required: false,
551
+ },
552
+ isolatedContext: {
553
+ name: 'isolatedContext',
554
+ type: 'string',
555
+ 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.',
556
+ required: false,
557
+ },
558
+ timeout: {
559
+ name: 'timeout',
560
+ type: 'integer',
561
+ description: 'Maximum wait time in milliseconds. If set to 0, the default timeout will be used.',
562
+ required: false,
563
+ },
564
+ },
565
+ },
566
+ performance_analyze_insight: {
567
+ description: 'Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.',
568
+ category: 'Performance',
569
+ args: {
570
+ insightSetId: {
571
+ name: 'insightSetId',
572
+ type: 'string',
573
+ description: 'The id for the specific insight set. Only use the ids given in the "Available insight sets" list.',
574
+ required: true,
575
+ },
576
+ insightName: {
577
+ name: 'insightName',
578
+ type: 'string',
579
+ description: 'The name of the Insight you want more information on. For example: "DocumentLatency" or "LCPBreakdown"',
580
+ required: true,
581
+ },
582
+ },
583
+ },
584
+ performance_start_trace: {
585
+ description: 'Start a performance trace on the selected webpage. Use to find frontend performance issues, Core Web Vitals (LCP, INP, CLS), and improve page load speed.',
586
+ category: 'Performance',
587
+ args: {
588
+ reload: {
589
+ name: 'reload',
590
+ type: 'boolean',
591
+ description: 'Determines if, once tracing has started, the current selected 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.',
592
+ required: false,
593
+ default: true,
594
+ },
595
+ autoStop: {
596
+ name: 'autoStop',
597
+ type: 'boolean',
598
+ description: 'Determines if the trace recording should be automatically stopped.',
599
+ required: false,
600
+ default: true,
601
+ },
602
+ filePath: {
603
+ name: 'filePath',
604
+ type: 'string',
605
+ 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).',
606
+ required: false,
607
+ },
608
+ },
609
+ },
610
+ performance_stop_trace: {
611
+ description: 'Stop the active performance trace recording on the selected webpage.',
612
+ category: 'Performance',
613
+ args: {
614
+ filePath: {
615
+ name: 'filePath',
616
+ type: 'string',
617
+ 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).',
618
+ required: false,
619
+ },
620
+ },
621
+ },
622
+ press_key: {
623
+ 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).',
624
+ category: 'Input automation',
625
+ args: {
626
+ key: {
627
+ name: 'key',
628
+ type: 'string',
629
+ description: 'A key or a combination (e.g., "Enter", "Control+A", "Control++", "Control+Shift+R"). Modifiers: Control, Shift, Alt, Meta',
630
+ required: true,
631
+ },
632
+ includeSnapshot: {
633
+ name: 'includeSnapshot',
634
+ type: 'boolean',
635
+ description: 'Whether to include a snapshot in the response. Default is false.',
636
+ required: false,
637
+ },
638
+ },
639
+ },
640
+ reload_extension: {
641
+ description: 'Reloads an unpacked Chrome extension by its ID. (requires flag: --categoryExtensions=true)',
642
+ category: 'Extensions',
643
+ args: {
644
+ id: {
645
+ name: 'id',
646
+ type: 'string',
647
+ description: 'ID of the extension to reload.',
648
+ required: true,
649
+ },
650
+ },
651
+ },
652
+ resize_page: {
653
+ description: "Resizes the selected page's window so that the page has specified dimension",
654
+ category: 'Emulation',
655
+ args: {
656
+ width: {
657
+ name: 'width',
658
+ type: 'number',
659
+ description: 'Page width',
660
+ required: true,
661
+ },
662
+ height: {
663
+ name: 'height',
664
+ type: 'number',
665
+ description: 'Page height',
666
+ required: true,
667
+ },
668
+ },
669
+ },
670
+ screencast_start: {
671
+ description: 'Starts recording a screencast (video) of the selected page in specified format. (requires flag: --experimentalScreencast=true)',
672
+ category: 'Debugging',
673
+ args: {
674
+ filePath: {
675
+ name: 'filePath',
676
+ type: 'string',
677
+ description: 'Output file path (.webm,.mp4 are supported). Uses mkdtemp to generate a unique path if not provided.',
678
+ required: false,
679
+ },
680
+ },
681
+ },
682
+ screencast_stop: {
683
+ description: 'Stops the active screencast recording on the selected page. (requires flag: --experimentalScreencast=true)',
684
+ category: 'Debugging',
685
+ args: {},
686
+ },
687
+ select_page: {
688
+ description: 'Select a page as a context for future tool calls.',
689
+ category: 'Navigation automation',
690
+ args: {
691
+ pageId: {
692
+ name: 'pageId',
693
+ type: 'number',
694
+ description: 'The ID of the page to select. Call list_pages to get available pages.',
695
+ required: true,
696
+ },
697
+ bringToFront: {
698
+ name: 'bringToFront',
699
+ type: 'boolean',
700
+ description: 'Whether to focus the page and bring it to the top.',
701
+ required: false,
702
+ },
703
+ },
704
+ },
705
+ take_memory_snapshot: {
706
+ description: 'Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.',
707
+ category: 'Memory',
708
+ args: {
709
+ filePath: {
710
+ name: 'filePath',
711
+ type: 'string',
712
+ description: 'A path to a .heapsnapshot file to save the heapsnapshot to.',
713
+ required: true,
714
+ },
715
+ },
716
+ },
717
+ take_screenshot: {
718
+ description: 'Take a screenshot of the page or element.',
719
+ category: 'Debugging',
720
+ args: {
721
+ format: {
722
+ name: 'format',
723
+ type: 'string',
724
+ description: 'Type of format to save the screenshot as. Default is "png"',
725
+ required: false,
726
+ default: 'png',
727
+ enum: ['png', 'jpeg', 'webp'],
728
+ },
729
+ quality: {
730
+ name: 'quality',
731
+ type: 'number',
732
+ description: 'Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.',
733
+ required: false,
734
+ },
735
+ uid: {
736
+ name: 'uid',
737
+ type: 'string',
738
+ description: 'The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot.',
739
+ required: false,
740
+ },
741
+ fullPage: {
742
+ name: 'fullPage',
743
+ type: 'boolean',
744
+ description: 'If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.',
745
+ required: false,
746
+ },
747
+ filePath: {
748
+ name: 'filePath',
749
+ type: 'string',
750
+ 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.',
751
+ required: false,
752
+ },
753
+ },
754
+ },
755
+ take_snapshot: {
756
+ description: 'Take a text snapshot of the currently selected 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).',
757
+ category: 'Debugging',
758
+ args: {
759
+ verbose: {
760
+ name: 'verbose',
761
+ type: 'boolean',
762
+ description: 'Whether to include all possible information available in the full a11y tree. Default is false.',
763
+ required: false,
764
+ },
765
+ filePath: {
766
+ name: 'filePath',
767
+ type: 'string',
768
+ 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.',
769
+ required: false,
770
+ },
771
+ },
772
+ },
773
+ trigger_extension_action: {
774
+ description: 'Triggers the default action of an extension by its ID. (requires flag: --categoryExtensions=true)',
775
+ category: 'Extensions',
776
+ args: {
777
+ id: {
778
+ name: 'id',
779
+ type: 'string',
780
+ description: 'ID of the extension to trigger the action for.',
781
+ required: true,
782
+ },
783
+ },
784
+ },
785
+ type_text: {
786
+ description: 'Type text using keyboard into a previously focused input',
787
+ category: 'Input automation',
788
+ args: {
789
+ text: {
790
+ name: 'text',
791
+ type: 'string',
792
+ description: 'The text to type',
793
+ required: true,
794
+ },
795
+ submitKey: {
796
+ name: 'submitKey',
797
+ type: 'string',
798
+ description: 'Optional key to press after typing. E.g., "Enter", "Tab", "Escape"',
799
+ required: false,
800
+ },
801
+ },
802
+ },
803
+ uninstall_extension: {
804
+ description: 'Uninstalls a Chrome extension by its ID. (requires flag: --categoryExtensions=true)',
805
+ category: 'Extensions',
806
+ args: {
807
+ id: {
808
+ name: 'id',
809
+ type: 'string',
810
+ description: 'ID of the extension to uninstall.',
811
+ required: true,
812
+ },
813
+ },
814
+ },
815
+ upload_file: {
816
+ description: 'Upload a file through a provided element.',
817
+ category: 'Input automation',
818
+ args: {
819
+ uid: {
820
+ name: 'uid',
821
+ type: 'string',
822
+ description: 'The uid of the file input element or an element that will open file chooser on the page from the page content snapshot',
823
+ required: true,
824
+ },
825
+ filePath: {
826
+ name: 'filePath',
827
+ type: 'string',
828
+ description: 'The local path of the file to upload',
829
+ required: true,
830
+ },
831
+ includeSnapshot: {
832
+ name: 'includeSnapshot',
833
+ type: 'boolean',
834
+ description: 'Whether to include a snapshot in the response. Default is false.',
835
+ required: false,
836
+ },
837
+ },
838
+ },
839
+ };
840
+ //# sourceMappingURL=chrome-devtools-cli-options.js.map