MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / agentCommand

Function agentCommand

src/agent-backend.ts:505–507  ·  view source on GitHub ↗
(action: string, payload: Record<string, any>)

Source from the content-addressed store, hash-verified

503 }
504
505 async function agentCommand(action: string, payload: Record<string, any>): Promise<any> {
506 return await agentRequest(action, payload);
507 }
508
509 async function withTab<T>(tabId: number | undefined, action: () => Promise<T>): Promise<T> {
510 if (!Number.isFinite(tabId)) return await action();

Callers 5

withTabFunction · 0.85
agentEvaluateFunction · 0.85
waitForCountFunction · 0.85
agentQueryFunction · 0.85
requestToolFunction · 0.85

Calls 1

agentRequestFunction · 0.85

Tested by

no test coverage detected