revue_definitions
Find where a function, class, type, or variable is defined at the revision a view shows, with the closest match ranked first.
Instructions
Find where an identifier (function, class, type, variable...) is defined, at the revision a view shows (in a plain folder, in its files). A fast git-grep heuristic, not a compiler: JS/TS, Python, Go, Rust, C-family and shell, with a loose fallback for other languages. The best match comes first, marked with * when it is a clear winner.
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": {
"name": "<name>"
},
"name": "revue_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git | No | false opens the folder as a plain folder (its files only, including .git) even inside a git repo, like revue --no-git. Default true. | |
| ref | No | Commit to show in commit mode (default HEAD). | |
| base | No | Base branch in branch mode (default: main, master, origin/main, origin/master or develop, whichever exists). | |
| head | No | Branch to view in commit/branch mode without checking it out (default: the checked-out branch). | |
| mode | No | working = uncommitted changes vs HEAD (default); commit = one commit vs its parent; branch = head vs its merge-base with base, like a PR. | |
| name | Yes | The identifier. | |
| path | No | File the identifier was seen in; ranks nearby definitions first. | |
| repo | No | Any folder inside the git repo. Defaults to the current working directory. A folder outside any repo opens as a plain folder: its files only, with no changes, history or modes. | |
| side | No | Search the new (default) or old side of the view. | |
| persist | No | If a server has to be started: true keeps it running after this agent session ends, false stops it with the session. Defaults to the --lifetime setting. |