YouTube: Login
youtube_auth_loginSign in with Google to authorize YouTube uploads, choose the target channel, and store a refresh token for later access.
Instructions
Sign in with Google: opens the consent screen in the browser and waits for it to finish, then stores a refresh token (mode 600) and reports which channel it acts as. On the account chooser, pick the channel uploads should go to — a Brand Account channel is listed separately from the personal one. The app is unverified, so Google shows a warning first: Advanced → Go to (app). If no browser can be opened, or the wait runs out, returns the authorize URL instead and keeps listening for 5 minutes; call youtube_auth_status afterwards. Logging in again replaces the stored login.
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": "youtube_auth_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| open | No | Open the consent screen in the default browser. false only returns the URL. | |
| wait_seconds | No | How long to wait for the consent to complete before returning the URL instead. Defaults to 120. |