listProjects
listProjectsRetrieve SonarQube projects, optionally filtered by name, to obtain their keys for use in other operations.
Instructions
List projects, optionally filtered by name. Returns key, name, and qualifier; use the key as projectKey in other tools.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "listProjects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size; server default if omitted. | |
| query | No | Project name substring | |
| offset | No | Offset; default 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Projects in this page. | |
| limit | No | Maximum number of items per page. | |
| total | No | Total number of projects matching the query across all pages. | |
| offset | No | Zero-based offset of this page within the full result set. |