Home / Function/ asTextContentResult() — mcp Function Reference

asTextContentResult() — mcp Function Reference

Architecture documentation for the asTextContentResult() function in types.ts from the mcp codebase.

Entity Profile

Dependency Diagram

graph TD
  46063d5f_ce29_e424_cd46_c460531d27b6["asTextContentResult()"]
  fdc0fb6f_bf66_23e1_e32e_b17145da77c5["handler()"]
  fdc0fb6f_bf66_23e1_e32e_b17145da77c5 -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  d01a6f75_522a_03cd_b386_1c1c752e4564["handler()"]
  d01a6f75_522a_03cd_b386_1c1c752e4564 -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  a98010dc_5359_1091_7b2a_e4dcbe99164c["handler()"]
  a98010dc_5359_1091_7b2a_e4dcbe99164c -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  8e9da006_7e8b_e75f_f70b_e874951820d2["handler()"]
  8e9da006_7e8b_e75f_f70b_e874951820d2 -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  9efb304e_755f_f15e_7c58_cd704e785584["searchSymbolHandler()"]
  9efb304e_755f_f15e_7c58_cd704e785584 -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  29f8c2af_0da8_6d3f_ba3e_184920a85d20["findDefinitionHandler()"]
  29f8c2af_0da8_6d3f_ba3e_184920a85d20 -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  329942b6_776c_c220_56a7_6ce4c9dda7e3["traceCallsHandler()"]
  329942b6_776c_c220_56a7_6ce4c9dda7e3 -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  76db10df_f560_1331_9608_6a46d322e405["annotateHandler()"]
  76db10df_f560_1331_9608_6a46d322e405 -->|calls| 46063d5f_ce29_e424_cd46_c460531d27b6
  style 46063d5f_ce29_e424_cd46_c460531d27b6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/types.ts lines 30–40

export function asTextContentResult(result: unknown): ToolCallResult {
  return {
    content: [
      {
        type: 'text',
        text: typeof result === 'string' ? result : JSON.stringify(result, null, 2),
      },
    ],
    isError: false
  };
}

Domain

Subdomains

Frequently Asked Questions

What does asTextContentResult() do?
asTextContentResult() is a function in the mcp codebase.
What calls asTextContentResult()?
asTextContentResult() is called by 8 function(s): annotateHandler, findDefinitionHandler, handler, handler, handler, handler, searchSymbolHandler, traceCallsHandler.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free