Perf Engineer

v0.2.0
io.github.perf-engineer/perf-engineer Checked 1 day ago Published 2 hours ago

Diagnose slow web pages, LCP, and Core Web Vitals with Lighthouse and Chrome evidence.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

perf_negotiate

Negotiate protocol compatibility (v2.x) with Perf Engineer Core.

ParameterTypeDescription
supportedProtocol *object

perf_create_run

Create a new read-only performance diagnostic run after verifying host capabilities.

ParameterTypeDescription
request *object
capabilitiesobject
runModestring

perf_confirm_scenario

Freeze the diagnostic scenario version before login or baseline measurement.

ParameterTypeDescription
expectedRevision *integer
runId *string

perf_begin_login

Open a Core-managed visible browser window with an isolated 0o700 profile for manual user login.

ParameterTypeDescription
runId *string

perf_confirm_login

Confirm manual login is complete so Core closes the login window and reuses the isolated profile for measurement.

ParameterTypeDescription
expectedRevision *integer
runId *string

perf_start_measurement

Start asynchronous Lighthouse baseline measurement. Returns operationId immediately; poll via perf_get_operation.

ParameterTypeDescription
expectedRevision *integer
runId *string

perf_get_operation

Poll status and progress of an asynchronous operation (including restart-interrupted detection).

ParameterTypeDescription
operationId *string

perf_cancel_operation

Cancel an in-flight asynchronous measurement operation and mark the run cancelled.

ParameterTypeDescription
operationId *string

perf_claim_source_phase

Claim a single-use Core-issued phase lease for source analysis and receive compact issue packets, Lighthouse 12 diagnostics, and evidence references.

ParameterTypeDescription
runId *string

perf_get_sop

Read the built-in first-screen performance diagnostic SOP playbook (full or by section id like dim-1..dim-6).

ParameterTypeDescription
playbookIdstring
sectionstring

perf_get_evidence

Fetch paginated runtime evidence projections (top-assets, image-audit, script-and-third-party, network-waterfall, network-requests, render-blocking, lcp-breakdown, long-tasks, resource-headers).

ParameterTypeDescription
projectionKind *string
runId *string
artifactIdstring
cursorstring
evidenceIdstring
limitinteger

perf_read_anchor

Read-only helper that returns exact line-range snippet and SHA-256 fileDigest for a file inside the diagnosed repository.

ParameterTypeDescription
endLine *integer
path *string
runId *string
startLine *integer

perf_submit_claims

Submit structured SourceAnalysisResult bound to the Core-issued phaseExecutionId lease for Claim Gate evaluation.

ParameterTypeDescription
expectedRevision *integer
phaseExecutionId *string
runId *string
claimsarray
phaseMetadataobject
sourceAnalysisobject

perf_claim_task_phase

Claim a single-use Core-issued phase lease for task planning and receive compact Claim Gate results.

ParameterTypeDescription
runId *string

perf_get_claim_results

Read Claim Gate decisions for a run.

ParameterTypeDescription
runId *string

perf_submit_tasks

Submit structured TaskProposal[] bound to the Core-issued task-planning lease for Task Gate evaluation.

ParameterTypeDescription
expectedRevision *integer
phaseExecutionId *string
runId *string
tasks *array
phaseMetadataobject

perf_get_task_results

Read Task Gate decisions for a run.

ParameterTypeDescription
runId *string

perf_compile_artifacts

Run Report Quality Gate and publish report.md, perf-tasks.md, evidence/, and manifest.json outside the diagnosed repository.

ParameterTypeDescription
expectedRevision *integer
runId *string
outputDirectorystring

perf_get_run

Get current run state, revision, and allowed nextActions.

ParameterTypeDescription
runId *string

perf_cancel_run

Cancel a diagnostic run and clean up temporary resources.

ParameterTypeDescription
expectedRevision *integer
runId *string

perf_recover_run

Recover a paused or interrupted diagnostic run after verifying checkpoint integrity.

ParameterTypeDescription
expectedRevision *integer
runId *string
capabilitiesobject

perf_create_retest

Create a comparable retest run referencing an existing baseline run ID.

ParameterTypeDescription
baselineRunId *string

perf_compare_retest

Compare a completed retest run against its baseline run under the frozen scenario.

ParameterTypeDescription
baselineRunId *string
retestRunId *string

perf_record_violation

Record a read-only policy violation observed or blocked by host hooks during a diagnostic run.

ParameterTypeDescription
blocked *boolean
category *string
reason *string
runId *string
toolName *string