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

Function listProps

src/index.ts:877–881  ·  view source on GitHub ↗
(objectId: string)

Source from the content-addressed store, hash-verified

875 return { type: v.type, description: v.description, className: (v as any).className, objectId: (v as any).objectId };
876 }
877 async function listProps(objectId: string) {
878 const { result } = await nodeDebugClient!.Runtime.getProperties({ objectId, ownProperties: true, generatePreview: false });
879 const entries = (result || []).slice(0, maxProps).map((p) => ({ name: p.name, ...summarizeValue(p.value) }));
880 return entries;
881 }
882 const scopes: any[] = [];
883 for (const s of frame.scopeChain || []) {
884 if (!s.object || !s.object.objectId) continue;

Callers 1

index.tsFile · 0.85

Calls 1

summarizeValueFunction · 0.85

Tested by

no test coverage detected