detect_forge
Detects a repository's Git host (GitHub or GitLab) and checks whether the matching CLI is installed and signed in. Use it read-only before creating a goal.
Instructions
Which git host a folder's repo is on (github, gitlab, or null when it has no origin remote or neither CLI knows the host), and whether that host's CLI (gh, glab) is installed and signed in. Read-only. For the quarterdeck-goals plugin's /goal-new.
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": {
"working_dir": "<working_dir>"
},
"name": "detect_forge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_scope | No | A goal run passes its run id here; anyone else leaves it out. | |
| working_dir | Yes | The repo's folder (absolute path) |