MCPcopy Create free account
hub / github.com/cloudflare/computer / call

Method call

packages/computer/src/runtime/types.ts:9–9  ·  view source on GitHub ↗

Dispatch a call made through a host-installed reserved ws:* module.

(
    method: string,
    args: WorkspaceRuntimeValue[],
    context?: { signal: AbortSignal; deadline: number },
  )

Source from the content-addressed store, hash-verified

7export interface WorkspaceTrustedModule {
8 /** Dispatch a call made through a host-installed reserved ws:* module. */
9 call(
10 method: string,
11 args: WorkspaceRuntimeValue[],
12 context?: { signal: AbortSignal; deadline: number },

Callers 8

driver.test.tsFile · 0.65
maybeDisposeFunction · 0.65
getFunction · 0.65
[Symbol.dispose]Method · 0.65
maybeDisposeFunction · 0.65
evaluateFunction · 0.65
#callTrustedMethod · 0.65
bridge.test.tsFile · 0.65

Implementers 2

WorkspaceRuntimeBridgepackages/computer/src/runtime/bridge.t
HostDOpackages/computer/tests/script-runner-

Calls

no outgoing calls

Tested by 2

getFunction · 0.52
evaluateFunction · 0.52