MCPcopy Create free account

hub / github.com/alibaba/page-agent / functions

Functions526 in github.com/alibaba/page-agent

↓ 1 callersFunctionisAnchorElement
(el: Element)
packages/page-controller/src/utils/index.ts:21
↓ 1 callersFunctionisBackgroundDark
* Checks the background color of the body element to determine if the page is dark.
packages/page-controller/src/mask/checkDarkMode.ts:79
↓ 1 callersFunctionisColorSchemeDark
* Checks the CSS `color-scheme` property and `<meta name="color-scheme">` tag. * Only "dark"/"only dark" counts as dark; "light dark" is ambiguous an
packages/page-controller/src/mask/checkDarkMode.ts:64
↓ 1 callersFunctionisElementAccepted
* Checks if an element is accepted. * * @param {HTMLElement} element - The element to check. * @returns {boolean} Whether the element is accepte
packages/page-controller/src/dom/dom_tree/index.js:643
↓ 1 callersFunctionisElementDistinctInteraction
* Checks if an element likely represents a distinct interaction * separate from its parent (if the parent is also interactive). * * @param {HTML
packages/page-controller/src/dom/dom_tree/index.js:1292
↓ 1 callersFunctionisExecutingTool
(detail: unknown, toolName: string)
packages/core/src/PageAgentCore.test.ts:87
↓ 1 callersFunctionisHTMLElement
(el: unknown)
packages/page-controller/src/utils/index.ts:4
↓ 1 callersFunctionisHeuristicallyInteractive
* Heuristically determines if an element should be considered as independently interactive, * even if it's nested inside another interactive contain
packages/page-controller/src/dom/dom_tree/index.js:1248
↓ 1 callersFunctionisInExpandedViewport
* Checks if an element is within the expanded viewport. * * @param {HTMLElement} element - The element to check. * @param {number} viewportExpan
packages/page-controller/src/dom/dom_tree/index.js:1076
↓ 1 callersFunctionisInputElement
(el: Element)
packages/page-controller/src/utils/index.ts:9
↓ 1 callersFunctionisInteractiveCandidate
(element)
packages/page-controller/src/dom/dom_tree/index.js:1171
↓ 1 callersFunctionisInternalPackage
* Check if a dependency name is a page-agent internal package
scripts/sync-version.js:56
↓ 1 callersFunctionisMainBranch
()
scripts/ci.js:22
↓ 1 callersFunctionisMainContentBackgroundDark
* Checks the background color of major layout elements (#app, #root, etc.). * Many SPAs render into a container that may have its own dark background
packages/page-controller/src/mask/checkDarkMode.ts:118
↓ 1 callersFunctionisPageDark
()
packages/page-controller/src/mask/checkDarkMode.ts:5
↓ 1 callersFunctionisScrollableElement
* @edit scrollable element detection * Checks if an element is scrollable. if so, return the scrollable distance on each direction (left right top b
packages/page-controller/src/dom/dom_tree/index.js:488
↓ 1 callersFunctionisSelectElement
(el: Element)
packages/page-controller/src/utils/index.ts:17
↓ 1 callersFunctionisTestingEndpoint
(url: string)
packages/extension/src/agent/constants.ts:19
↓ 1 callersFunctionisTextAreaElement
(el: Element)
packages/page-controller/src/utils/index.ts:13
↓ 1 callersFunctionisTextColorLight
* Checks if the text color on the body is light, which implies a dark background.
packages/page-controller/src/mask/checkDarkMode.ts:102
↓ 1 callersFunctionisTextNodeVisible
* Checks if a text node is visible. * * @param {Text} textNode - The text node to check. * @returns {boolean} Whether the text node is visible.
packages/page-controller/src/dom/dom_tree/index.js:564
↓ 1 callersFunctionisTopElement
* Checks if an element is the topmost element at its position. * * @param {HTMLElement} element - The element to check. * @returns {boolean} Whe
packages/page-controller/src/dom/dom_tree/index.js:966
↓ 1 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/llms/src/OpenAIClient.test.ts:32
↓ 1 callersFunctionlistSessions
()
packages/extension/src/lib/db.ts:51
↓ 1 callersFunctionmakeClient
(overrides: Partial<LLMConfig> = {})
packages/llms/src/OpenAIClient.test.ts:11
↓ 1 callersFunctionmakeLLM
(maxRetries = 2)
packages/llms/src/index.test.ts:6
↓ 1 callersFunctionmakeTool
()
packages/llms/src/OpenAIClient.test.ts:24
↓ 1 callersFunctionmatchAttributes
( attrs: Record<string, string>, patterns: string[] )
packages/page-controller/src/dom/index.ts:125
↓ 1 callersFunctionmigrateLegacyEndpoint
(config: LLMConfig)
packages/extension/src/agent/constants.ts:24
↓ 1 callersFunctionmodelPatch
(body: Record<string, any>, baseURL?: string)
packages/llms/src/utils.ts:39
↓ 1 callersFunctionmovePointerToElement
(element: HTMLElement, x: number, y: number)
packages/page-controller/src/utils/index.ts:58
↓ 1 callersFunctionnormalizeResponse
(response: any, tools?: Map<string, PageAgentTool>)
packages/core/src/utils/autoFixer.ts:21
↓ 1 callersMethodnotifySubscribers
(type: string, args: unknown[])
packages/website/src/components/JSConsole.tsx:79
↓ 1 callersFunctiononMouseMove
()
packages/website/src/components/ui/particles.tsx:138
↓ 1 callersFunctiononceActivity
( agent: PageAgentCore, predicate: (detail: unknown) => boolean )
packages/core/src/PageAgentCore.test.ts:72
↓ 1 callersMethodopenNewTab
(url: string)
packages/extension/src/agent/TabsController.ts:132
↓ 1 callersFunctionopenOrFocusHubTab
(wsPort: number)
packages/extension/src/entrypoints/background.ts:46
↓ 1 callersFunctionpad
(value: number)
packages/extension/src/lib/history-export.ts:58
↓ 1 callersFunctionparseRgbColor
* Parses an RGB or RGBA color string and returns an object with r, g, b properties. * @param {string} colorString - e.g., "rgb(34, 34, 34)" or "rgba(
packages/page-controller/src/mask/checkDarkMode.ts:142
↓ 1 callersFunctionpatchReact
(pageController: PageController)
packages/page-controller/src/patches/react.ts:4
↓ 1 callersFunctionprintProgress
()
scripts/parallel-task.js:30
↓ 1 callersFunctionprocessNode
(node: TreeNode, depth: number, result: string[])
packages/page-controller/src/dom/index.ts:315
↓ 1 callersMethodpushObservation
* Push an observation message to the history event stream. * This will be visible in <agent_history> and remain persistent in memory across steps.
packages/core/src/PageAgentCore.ts:192
↓ 1 callersFunctionrandomColor
()
packages/extension/src/agent/TabsController.ts:420
↓ 1 callersFunctionrandomID
(existingIDs?: string[])
packages/core/src/utils/index.ts:40
↓ 1 callersFunctionremapValue
( value: number, start1: number, end1: number, start2: number, end2: number )
packages/website/src/components/ui/particles.tsx:230
↓ 1 callersFunctionresizeCanvas
()
packages/website/src/components/ui/particles.tsx:152
↓ 1 callersFunctionresolveActiveTab
* Resolve active tab. * * - `tabs.query({ active: true })` does not work in multi-window scenarios. * - Extension pages (side panel, hub tab) can r
packages/extension/src/agent/TabsController.background.ts:24
↓ 1 callersFunctionresolveViewportExpansion
(viewportExpansion?: number)
packages/page-controller/src/dom/index.ts:20
↓ 1 callersFunctionretrieveJsonFromString
* Extract and parse JSON from a string. * - Treat content between the first `{` and the last `}` as JSON. * - Try to parse that content as JSON and
packages/core/src/utils/autoFixer.ts:189
↓ 1 callersFunctionrun
(label, command)
scripts/ci.js:17
↓ 1 callersFunctionsafeJsonParse
* Safely parse JSON, return original input if not json.
packages/core/src/utils/autoFixer.ts:173
↓ 1 callersFunctionsanitizeTaskForFilename
(task: string)
packages/extension/src/lib/history-export.ts:37
↓ 1 callersFunctionsaveSession
( session: Omit<SessionRecord, 'id' | 'createdAt'> )
packages/extension/src/lib/db.ts:37
↓ 1 callersMethodscroll
* Scroll vertically
packages/page-controller/src/PageController.ts:318
↓ 1 callersFunctionscrollHorizontally
(scroll_amount: number, element?: HTMLElement | null)
packages/page-controller/src/actions.ts:419
↓ 1 callersMethodscrollHorizontally
* Scroll horizontally
packages/page-controller/src/PageController.ts:350
↓ 1 callersFunctionscrollIntoViewIfNeeded
(element: Element)
packages/page-controller/src/actions.ts:263
↓ 1 callersFunctionscrollVertically
(scroll_amount: number, element?: HTMLElement | null)
packages/page-controller/src/actions.ts:275
↓ 1 callersMethodselectOption
* Select dropdown option by index and option text
packages/page-controller/src/PageController.ts:296
↓ 1 callersFunctionselectOptionElement
(selectElement: HTMLSelectElement, optionText: string)
packages/page-controller/src/actions.ts:238
↓ 1 callersFunctionserializeHistoryExport
(history: HistoricalEvent[])
packages/extension/src/lib/history-export.ts:6
↓ 1 callersMethodsetCursorPosition
(x: number, y: number)
packages/page-controller/src/mask/SimulatorMask.ts:162
↓ 1 callersFunctionsetParentReferences
(node: TreeNode, parent: TreeNode | null = null)
packages/page-controller/src/dom/index.ts:284
↓ 1 callersMethodshouldTrack
(tab: chrome.tabs.Tab)
packages/extension/src/agent/TabsController.ts:376
↓ 1 callersMethodshowMask
* Show the visual mask overlay. * Only works after mask is setup.
packages/page-controller/src/PageController.ts:406
↓ 1 callersMethodshowMask
@note Managed by content script via storage polling.
packages/extension/src/agent/RemotePageController.ts:139
↓ 1 callersFunctionspaRoutes
()
packages/website/vite.config.js:42
↓ 1 callersFunctionstartBlockedTask
* Start a task that blocks on `wait`, returning once the tool is executing. * The running promise is wrapped so awaiting this helper does not await t
packages/core/src/PageAgentCore.test.ts:110
↓ 1 callersMethodstartIntercepting
()
packages/website/src/components/JSConsole.tsx:49
↓ 1 callersFunctionstop
()
packages/extension/src/entrypoints/main-world.ts:112
↓ 1 callersMethodstopIntercepting
()
packages/website/src/components/JSConsole.tsx:70
↓ 1 callersMethodstopTask
()
packages/mcp/src/hub-bridge.js:94
↓ 1 callersMethodsubscribe
(callback: (type: string, args: unknown[]) => void)
packages/website/src/components/JSConsole.tsx:37
↓ 1 callersMethodsummarizeTabs
()
packages/extension/src/agent/TabsController.ts:278
↓ 1 callersFunctionsuppress
(fn: () => T | Promise<T>)
packages/core/src/utils/index.ts:136
↓ 1 callersFunctionsyncDarkMode
()
packages/extension/src/entrypoints/sidepanel/main.tsx:11
↓ 1 callersFunctionsyncDarkMode
()
packages/extension/src/entrypoints/hub/main.tsx:10
↓ 1 callersFunctionthrottleFunction
(func, delay)
packages/page-controller/src/dom/dom_tree/index.js:378
↓ 1 callersFunctiontimeAgo
(ts: number)
packages/extension/src/components/HistoryList.tsx:16
↓ 1 callersFunctiontoOpenRouterModelId
* Derive a model's OpenRouter id from its brand (a `MODEL_GROUPS` key) and * native model name.
packages/llms/src/models.live.test.ts:135
↓ 1 callersFunctiontoolCallBody
(toolName: string, args: unknown, finishReason = 'tool_calls')
packages/llms/src/OpenAIClient.test.ts:39
↓ 1 callersMethodtriggerClickAnimation
()
packages/page-controller/src/mask/SimulatorMask.ts:169
↓ 1 callersFunctiontruncate
(text: string, maxLength: number)
packages/core/src/utils/index.ts:31
↓ 1 callersFunctiontruncate
(text: string, maxLength: number)
packages/ui/src/utils.ts:1
↓ 1 callersMethodunsubscribe
(callback: (type: string, args: unknown[]) => void)
packages/website/src/components/JSConsole.tsx:42
↓ 1 callersFunctionupdateDimensions
()
packages/website/src/components/ui/neon-gradient-card.tsx:74
↓ 1 callersFunctionupdateInternalDeps
* Update internal package versions in dependencies object * @returns {boolean} Whether any changes were made
scripts/sync-version.js:64
↓ 1 callersMethodupdateTree
* Update DOM tree, returns simplified HTML for LLM. * This is the main method to refresh the page state. * Automatically bypasses mask during DOM
packages/page-controller/src/PageController.ts:174
↓ 1 callersFunctionuseActiveSection
(ids: string[])
packages/website/src/pages/docs/introduction/troubleshooting/page.tsx:318
↓ 1 callersFunctionuseGitHubStars
()
packages/website/src/hooks/useGitHubStars.ts:7
↓ 1 callersFunctionuseHubWs
( execute: (task: string) => Promise<ExecutionResult>, stop: () => void, configure: (config: ExtConfig) =>
packages/extension/src/entrypoints/hub/hub-ws.ts:199
↓ 1 callersFunctionvalidateAction
* Validate action against tool schemas. Provides clear error messages * instead of letting the union schema produce unreadable errors. * * Also coe
packages/core/src/utils/autoFixer.ts:130
↓ 1 callersFunctionwaitResponse
(seconds = 10)
packages/core/src/PageAgentCore.test.ts:102
↓ 1 callersFunctionwaitUntil
* Wait until condition becomes true * @returns Returns when condition becomes true, false if timeout * @param timeoutMS Timeout in milliseconds, def
packages/extension/src/agent/TabsController.ts:430
↓ 1 callersFunctionwithRetry
* Retry a function until it succeeds or reaches the maximum number of retries.
packages/llms/src/index.ts:58
↓ 1 callersFunctionzodToOpenAITool
(name: string, tool: Tool)
packages/llms/src/utils.ts:15
FunctionAPIDivider
({ title }: { title: string })
packages/website/src/components/APIReference.tsx:165
FunctionAPIReference
({ title, description, properties, variant = 'properties', className, }: APIReferenceProps)
packages/website/src/components/APIReference.tsx:47
FunctionActionIcon
({ name, className }: { name: string; className?: string })
packages/extension/src/components/cards.tsx:116
← previousnext →201–300 of 526, ranked by callers