Run Git hygiene now
git_hygiene_runRuns Git hygiene for known repositories or one optional path. dry_run defaults to true. Real cleanup with merged_min_age_minutes below 60 (including zero) requires branch= or at most 20 explicit branches; only those branches and their worktrees are processed. Own-work proof, clean status, origin/main ancestry and creation age determine eligibility. New empty worktrees remain. Client-disabled hygiene refuses real changes. Older clients with scoped parameters return CLIENT_UPDATE_REQUIRED without dispatch. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.
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": "git_hygiene_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional absolute repository path restricting this sweep. | |
| branch | No | Exact branch scope. Real cleanup younger than 60 minutes requires an explicit scope; other sessions remain outside this cleanup. | |
| dry_run | No | true (default) reports planned actions; false performs permitted changes. | |
| device_id | No | Target computer device_id. Omit when only one computer is paired. | |
| device_name | No | Computer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer. | |
| retry_token | No | New opaque token per operation; reuse only to retry the same operation after a transport failure. No user content. | |
| workflow_id | No | Optional workflow id; pass together with ai_session_id. | |
| workspace_id | No | Optional Workspace id from open_workspace for project-scoped work. | |
| ai_session_id | No | Optional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work. | |
| merged_min_age_minutes | No | Minimum age in minutes, default 1440; real cleanup below 60 requires explicit branch scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||