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.
Input Schema
TableJSON 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"}.` }] }; } );