plainhub_auth
Opens GitHub's token creation page and guides saving a fine-grained token so PlainHub can access only selected repositories when authentication is missing.
Instructions
Help the user sign PlainHub in to GitHub: opens the GitHub page that creates a token. Use it once when plainhub_auth_status says "Not authenticated". Recommended: a fine-grained token that reaches only the repositories the user chooses (Contents: Read and write). Ask the user to save the token in their own terminal with plainhub auth (it asks for the token) or plainhub auth --from-gh, so the token never appears in this chat. Pass token only if the user gave it to you on their own; it is saved, not shown. Example: {}
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": "plainhub_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Only if the user handed you a token on their own: the token to save (github_pat_ fine-grained, for only the repositories the user chose). A token that can write to every repository (including ghp_ classic and gho_ gh CLI tokens with the repo scope) is not saved. Do not ask for it; tokens pasted into a chat stay in its history |