show_target_info
Retrieve the BUILD rule definition for a Bazel target, including macro-generated rules that may differ from on-disk BUILD files.
Instructions
Show the BUILD rule definition for a target (bazel query --output=build).
Macro-generated targets may differ from on-disk BUILD files.
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": {
"target": "<target>"
},
"name": "show_target_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |