MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / gatherPageBrief

Function gatherPageBrief

bin/mcp-server.js:452–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450}
451
452async function gatherPageBrief() {
453 const helper = pickActingHelper(container.helpers())
454 if (!helper) return {}
455 const out = {}
456 try { if (helper.grabCurrentUrl) out.url = await helper.grabCurrentUrl() } catch {}
457 try { if (helper.grabTitle) out.title = await helper.grabTitle() } catch {}
458 try {
459 if (helper.grabSource) {
460 const html = await helper.grabSource()
461 out.contentSize = typeof html === 'string' ? html.length : null
462 }
463 } catch {}
464 return out
465}
466
467function collectRunCompletion(errorMessage) {
468 const results = pendingRunResults || []

Callers 1

mcp-server.jsFile · 0.85

Calls 5

pickActingHelperFunction · 0.90
helpersMethod · 0.80
grabCurrentUrlMethod · 0.45
grabTitleMethod · 0.45
grabSourceMethod · 0.45

Tested by

no test coverage detected