git_status
Inspect the working tree to see current branch, staged, modified, and untracked files. Use it at the start of edits or before committing to know what changed.
Instructions
Show the repository's working tree state: current branch, staged, modified and untracked files.
Use this at the start of any edit task to answer 'what changed?', and before committing to verify what will be staged.
Best for: inspecting repository state before starting edits or after a change.
Returns: 'On branch .' first line, then non-empty sections 'Staged changes (N): ' / 'Modified (N): ' / 'Untracked (N): ' with file lists capped at 10 plus ', and N more', or 'Working tree clean on .' when nothing changed; short=True gives compact '--short --branch' output, include_untracked=False omits untracked files.
Does NOT show file contents or diffs — use git_diff for those; does NOT list commit history — use git_log.
More direct than raw git status because output is returned as text with no shell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| short | No | Use compact 'git status --short --branch' output | |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |
| include_untracked | No | Include untracked files |