MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / jsonToolResult

Function jsonToolResult

common/src/util/messages.ts:464–477  ·  view source on GitHub ↗
(
  value: T,
)

Source from the content-addressed store, hash-verified

462}
463
464export function jsonToolResult<T extends JSONValue>(
465 value: T,
466): [
467 Extract<ToolResultOutput, { type: 'json' }> & {
468 value: T
469 },
470 ] {
471 return [
472 {
473 type: 'json',
474 value,
475 },
476 ]
477}
478
479export function mediaToolResult(params: {
480 data: string

Callers 15

web-search.tsFile · 0.90
add-subgoal.tsFile · 0.90
write-todos.tsFile · 0.90
spawn-agents.tsFile · 0.90
gravity-index.tsFile · 0.90
update-subgoal.tsFile · 0.90
read-subtree.tsFile · 0.90
set-output.tsFile · 0.90
read-docs.tsFile · 0.90
skill.tsFile · 0.90
read-files.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected