Check source
check_sourceCheck whether a video would be accepted before creating a project by looking up its URL length or using a supplied duration; returns fit status, reason, and quota.
Instructions
Before create_project: would this video be accepted now? Give sourceUrl (its length is looked up, nothing is downloaded) or durationSec for a file. Returns { minutes, fits, message, quota, allowance }; fits false means create_project would be refused, message says why, quota.primary is the upgrade offer (a link for a person). fits null: the length is unknown.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceUrl | No | http(s) URL of the video; give this or durationSec | |
| durationSec | No | Length of a file you will upload, in seconds; give this or sourceUrl |