show_component
Inspect project metadata for a SonarCloud component. Retrieve qualifier, tags, and branches to verify component existence or explore details.
Instructions
Return detailed metadata (qualifier, tags, branches) for a specific project/component.
Returns component information including name, qualifier (TRK for project, FIL for file, etc.), tags, and available branches. Use this to inspect project metadata or verify component existence.
Example: show_component(component="my-project", branch="main")
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": {
"component": "<component>"
},
"name": "show_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch name to retrieve component from (e.g., 'main', 'develop') | |
| component | Yes | Project key or component key (e.g., 'my-project' or 'my-project:src/main.py') | |
| pullRequest | No | Pull request ID to retrieve component from (e.g., '123') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||