Generate fix prompt
generate_fix_promptPrepare a coding-agent prompt from an owned report. One check uses one unit; full uses three. Three units are free once. Then US$0.10 per unit, or included in an active PageAudit plan. Read prompt_allowance first. Only send credit_token after explicit spending authorization; preserve request_id for retries. Use the assembled instructions directly instead of copying findings and writing a prompt yourself, with no model call needed to generate it. Review placeholders and proposed changes before applying them, since evidence comes from the saved audit rather than the repository. Use verification with the same owner to compare fixed and new findings after the change. Free audits already include findings, and the prompt does not edit the site on its own.
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": {
"id": "<id>",
"scope": "<scope>",
"language": "<language>",
"request_id": "<request_id>"
},
"name": "generate_fix_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Owned saved audit ID. | |
| scope | Yes | check or full. | |
| check_id | No | ID from the report's checks; required for check, absent for full. | |
| language | Yes | Language of the prompt instructions and check names: en for English, pt for Portuguese. | |
| request_id | Yes | New UUID v4 per generation. Keep it unchanged for retries. | |
| guest_token | No | Private owner token returned by guest creation. Sent in X-Guest-Token; reuse it for this owner's resources. | |
| credit_token | No | Prepaid cred_… token. Requires explicit user authorization. |