MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / toolFor

Function toolFor

packages/agent-core/test/tools/read-media.test.ts:696–701  ·  view source on GitHub ↗
(data: Buffer)

Source from the content-addressed store, hash-verified

694 }
695
696 function toolFor(data: Buffer): ReadMediaFileTool {
697 return makeReadMediaTool({
698 stat: vi.fn<Kaos['stat']>().mockResolvedValue({ ...DEFAULT_STAT, stSize: data.length }),
699 readBytes: vi.fn<Kaos['readBytes']>().mockResolvedValue(data),
700 });
701 }
702
703 it('accepts region and full_resolution in the input schema', () => {
704 expect(

Callers 1

read-media.test.tsFile · 0.85

Calls 1

makeReadMediaToolFunction · 0.85

Tested by

no test coverage detected