Pre-flight a script against YouTube advertiser and monetisation policy
policy_preflightCheck a script before recording for the YouTube policy categories it may touch: which category families are implicated, the consequence family for each, a verdict and flag counts. Each category cites YouTube's own published policy page. Choose this when the user is writing about sensitive subject matter and asks whether it is safe to monetise. The quoted passages and their suggested rewrites are part of the paid audit, so the free result may return counts with locked quotes. It reports risk against published policy text; it is not a monetisation guarantee and does not speak for YouTube.
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": {
"script": "<script>"
},
"name": "policy_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The planned title, if the user has one. Titles are checked too. | |
| script | Yes | The script text as written, at least 200 characters. Below that there is not enough context for a policy read. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Says which parts of the result are paid-only, so a locked field is not read as a clean pass. | |
| notice | Yes | The scope limit that accompanies every Prepublish result. Repeat it to the user rather than dropping it. | |
| unlock_url | No | Present only when part of this result is locked on the caller's plan: where the user pays to unlock it. Absent when nothing is locked. | |
| unlock_offer | No | Present with unlock_url: the one sentence to relay when offering it. | |
| policy_preflight | Yes | The policy read on this script. |