MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / getTextContent

Function getTextContent

tests/utils.ts:65–72  ·  view source on GitHub ↗
(
  content: CallToolResult['content'][number],
)

Source from the content-addressed store, hash-verified

63}
64
65export function getTextContent(
66 content: CallToolResult['content'][number],
67): string {
68 if (content.type === 'text') {
69 return content.text;
70 }
71 throw new Error(`Expected text content but got ${content.type}`);
72}
73
74export function getImageContent(content: CallToolResult['content'][number]): {
75 data: string;

Callers 9

testIncludesWebmcpToolsFunction · 0.85
input.test.tsFile · 0.85
script.test.tsFile · 0.85
pages.test.tsFile · 0.85
pwa.test.tsFile · 0.85
console.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 2

testIncludesWebmcpToolsFunction · 0.68