MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / executeScript

Method executeScript

src/types/scriptcat.zh-CN.d.ts:1269–1269  ·  view source on GitHub ↗

在页面上下文中执行 JavaScript 代码。

(code: string, options?: ExecuteScriptOptions)

Source from the content-addressed store, hash-verified

1267
1268 /** 在页面上下文中执行 JavaScript 代码。 */
1269 executeScript(code: string, options?: ExecuteScriptOptions): Promise<unknown>;
1270
1271 /** 开始监控标签页上的 DOM 变更(对话框、新增节点)。 */
1272 startMonitor(tabId: number): Promise<void>;

Callers 10

listenerScriptInstallMethod · 0.65
dom.test.tsFile · 0.65
constructorMethod · 0.65
readPageMethod · 0.65
scrollMethod · 0.65
waitForMethod · 0.65
executeScriptMethod · 0.65
executeClickMethod · 0.65
executeFillMethod · 0.65
createTabToolsFunction · 0.65

Implementers 1

AgentDomServicesrc/app/service/agent/service_worker/d

Calls

no outgoing calls

Tested by

no test coverage detected