MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / getImageContent

Function getImageContent

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

Source from the content-addressed store, hash-verified

46}
47
48export function getImageContent(content: CallToolResult['content'][number]): {
49 data: string;
50 mimeType: string;
51} {
52 if (content.type === 'image') {
53 return {data: content.data, mimeType: content.mimeType};
54 }
55 throw new Error(`Expected image content but got ${content.type}`);
56}
57
58export function extractExtensionId(response: McpResponse) {
59 const responseLine = response.responseLines[0];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…