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

Function toolRequest

src/plugin.ts:216–224  ·  view source on GitHub ↗
(toolName: string, args: Record<string, any>)

Source from the content-addressed store, hash-verified

214}
215
216async function toolRequest(toolName: string, args: Record<string, any>): Promise<any> {
217 if (USE_AGENT_BACKEND) {
218 if (!agentBackend) {
219 throw new Error("Agent backend unavailable: configuration failed to initialize");
220 }
221 return await agentBackend.requestTool(toolName, args);
222 }
223 return await brokerRequest("tool", { tool: toolName, args });
224}
225
226async function statusRequest(): Promise<any> {
227 if (USE_AGENT_BACKEND) {

Callers 1

executeFunction · 0.85

Calls 1

brokerRequestFunction · 0.85

Tested by

no test coverage detected