MCPcopy Index your code
hub / github.com/ScriptedAlchemy/devtools-debugger-mcp / summarizeFrame

Function summarizeFrame

src/index.ts:28–36  ·  view source on GitHub ↗
(frame: any)

Source from the content-addressed store, hash-verified

26type OutputFormat = 'text' | 'json';
27
28function summarizeFrame(frame: any) {
29 const fileUrl = frame.url || scriptIdToUrl[frame.location.scriptId] || '<unknown>';
30 return {
31 functionName: frame.functionName || null,
32 url: fileUrl,
33 line: frame.location.lineNumber + 1,
34 column: (frame.location.columnNumber ?? 0) + 1
35 };
36}
37
38function mcpContent(payload: unknown, format?: OutputFormat) {
39 // MCP spec supports text/image/resource. We encode structured data as a single text block.

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected