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
  67622b0f_6b47_8f68_bac5_409b3145d2f2["asTextContentResult()"]
  1767161e_720a_f6c8_bf00_3dc68740b823["handler()"]
  1767161e_720a_f6c8_bf00_3dc68740b823 -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  37989e20_855d_701d_ca13_a196d7d4a37e["handler()"]
  37989e20_855d_701d_ca13_a196d7d4a37e -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  7623ea08_e684_62f6_f74f_3b1d646a26f5["handler()"]
  7623ea08_e684_62f6_f74f_3b1d646a26f5 -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  e5737e93_21e3_4389_2f31_c2c4b7b9ef6c["handler()"]
  e5737e93_21e3_4389_2f31_c2c4b7b9ef6c -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  0c9ec015_a9a0_5ced_2032_d9aa5a5efa81["searchSymbolHandler()"]
  0c9ec015_a9a0_5ced_2032_d9aa5a5efa81 -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  211e0c66_321b_c05c_6d2c_3b3009df3949["findDefinitionHandler()"]
  211e0c66_321b_c05c_6d2c_3b3009df3949 -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  21066345_5e12_0bc2_9825_2a3d68bcb1b7["traceCallsHandler()"]
  21066345_5e12_0bc2_9825_2a3d68bcb1b7 -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  0dc81adb_6983_30fe_6ae1_4620d20c0ff0["annotateHandler()"]
  0dc81adb_6983_30fe_6ae1_4620d20c0ff0 -->|calls| 67622b0f_6b47_8f68_bac5_409b3145d2f2
  style 67622b0f_6b47_8f68_bac5_409b3145d2f2 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