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 instead of copying findings and building a prompt yourself. No model call is needed to generate it. Review placeholders and proposed changes before applying them. Evidence comes from the saved audit, not the repository. Use verification with the same owner to compare fixed and new findings after the change. Free audits already include findings; the prompt does not fix the site for you.
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. |