MCPcopy Index your code
hub / github.com/anomalyco/opencode / payload

Function payload

packages/core/test/tool-websearch.test.ts:16–21  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

14
15const sessionID = SessionV2.ID.make("ses_websearch_test")
16const payload = (text: string) =>
17 JSON.stringify({
18 jsonrpc: "2.0",
19 id: 1,
20 result: { content: [{ type: "text", text }] },
21 })
22
23describe("WebSearchTool provider selection", () => {
24 test("rejects out-of-range numeric controls", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected