Submit TestDino Audit Report
submit_audit_reportSaves a completed Playwright audit as a report and returns the platform-computed score, so you can record findings and recommendations without scoring them yourself.
Instructions
Saves a completed TestDino Playwright audit and returns its score. Requires write permission. Call it only after showing the user the findings and getting their yes, or when they explicitly asked to save the audit. If they decline, do not submit or ask again. Call this only AFTER get_audit_report(action='context') and after you have analyzed the local Playwright code and produced findings. markdownReport is required; include findings, recommendations, reportName, branch, scope, and target as available. Do NOT compute a score — TestDino derives it from the findings you submit and returns it with a per-category breakdown. orgId is required — resolve it via health() if you do not have it. Every finding MUST include title, summary, and severity (low|medium|high|critical) — incomplete findings are rejected, not stored. category is normalized to a known bucket. target, if sent, accepts only { value, path } as non-empty strings. Use the same branch/scope/target you passed to get_audit_report(action='context') so the report attaches to the right context.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>"
},
"name": "submit_audit_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Organization ID (required to submit). Resolve via health() if you don't have it. | |
| scope | No | Audit scope. Defaults to 'suite'. | |
| score | No | Ignored. TestDino computes the score from findings; kept so older clients still submit. | |
| branch | No | Git branch that was audited. | |
| target | No | Optional scoped-audit target. Only { value, path } (non-empty strings) are stored — the dashboard reads these; any other key is rejected. | |
| findings | No | Structured findings for the completed report | |
| projectId | Yes | Project ID (required) | |
| outputPath | No | Relative file path for the local save (see writeMarkdown). Resolved from TESTDINO_MCP_WORKSPACE. Defaults to TEST-AUDIT.md. | |
| reportName | No | Short human-readable title for the saved report | |
| writeMarkdown | No | When true, also write the submitted markdown to a local file. Ignored when markdownReportPath was supplied (the file already exists on disk). | |
| markdownReport | No | Completed markdown report (required). | |
| recommendations | No | Recommendation strings for the completed report | |
| markdownReportPath | No | Path to a local markdown file to read for submission. Relative from TESTDINO_MCP_WORKSPACE (or an absolute path). Preferred over markdownReport. |