toggle_statusbar
Control visibility of the git branch status bar in Claude's interface to manage repository tracking display.
Instructions
Enable or disable the entire status bar. When disabled the status line script outputs nothing.
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": {
"enabled": "<enabled>"
},
"name": "toggle_statusbar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true = enable, false = disable |
Implementation Reference
- src/tools/config-tools.ts:94-105 (handler)The implementation of the toggle_statusbar tool, which updates the statusbar.enabled configuration property and saves the configuration.
// --- toggle_statusbar --- server.tool( "toggle_statusbar", "Enable or disable the entire status bar. When disabled the status line script outputs nothing.", { enabled: z.boolean().describe("true = enable, false = disable") }, async ({ enabled }) => { const config = loadConfig(); config.statusbar.enabled = enabled; saveConfig(config); return { content: [{ type: "text", text: `Status bar ${enabled ? "enabled" : "disabled"}.` }] }; } );