MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getPageCapture

Function getPageCapture

integrations/clipper/src/background.ts:79–90  ·  view source on GitHub ↗
(tabId: number)

Source from the content-addressed store, hash-verified

77}
78
79async function getPageCapture(tabId: number): Promise<PageCapturePayload> {
80 const [response] = await chrome.scripting.executeScript<PageCapturePayload>({
81 func: getPageCaptureFromPage,
82 target: { tabId },
83 })
84
85 if (!response.result) {
86 throw new Error('Could not read the active page.')
87 }
88
89 return response.result
90}
91
92async function notify(title: string, message: string): Promise<void> {
93 await chrome.action.setBadgeText({

Callers 1

captureFromTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected