Why is this code like this?
whyReasons behind a file or line: decisions from PRs, reviews and reverts, the commit that last changed the line (with its message), the function there and who knows the code. Use before changing or deleting code that looks odd.
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": {
"path": "<path>",
"repository": "<repository>"
},
"name": "why"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Optional line number. | |
| path | Yes | Repo-relative file path. | |
| repository | Yes | Public GitHub repository as "owner/name" (e.g. "pallets/flask") or its github.com URL. |