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

Function brokerOnlyRequest

src/plugin.ts:202–207  ·  view source on GitHub ↗
(op: string, payload: Record<string, any>)

Source from the content-addressed store, hash-verified

200}
201
202async function brokerOnlyRequest(op: string, payload: Record<string, any>): Promise<any> {
203 if (USE_AGENT_BACKEND) {
204 throw new Error("Tab claims are not supported with agent-browser backend");
205 }
206 return await brokerRequest(op, payload);
207}
208
209function toolResultText(data: any, fallback: string): string {
210 if (typeof data?.content === "string") return data.content;

Callers 1

executeFunction · 0.85

Calls 1

brokerRequestFunction · 0.85

Tested by

no test coverage detected