MCPcopy Create free account
hub / github.com/WebMCP-org/chrome-devtools-quickstart / extractText

Function extractText

benchmark/helpers.ts:198–205  ·  view source on GitHub ↗
(
  result: CompatibilityCallToolResult
)

Source from the content-addressed store, hash-verified

196 * ```
197 */
198export function extractText(
199 result: CompatibilityCallToolResult
200): string | undefined {
201 const r = result as MCPResultWithContent;
202 if (!r.content) return undefined;
203 const textContent = r.content.find((c) => c.type === "text");
204 return textContent?.text;
205}
206
207/**
208 * Extracts image data from an MCP screenshot result.

Callers 4

runScreenshotApproachFunction · 0.85
runWebMCPApproachFunction · 0.85
runScreenshotApproachFunction · 0.85
runWebMCPApproachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected