list_labels
Retrieve all labels defined in a repository, including their IDs, names, colors, and descriptions, to use with other tools that accept label IDs.
Instructions
List labels defined in a repository.
Returns the standard Gitea Label object: {id, name, color, description, ...}.
Use the id values when calling tools that take label_ids directly;
most tools accept label names and resolve to IDs internally.
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| page | No | Page number (1-indexed) | |
| limit | No | Items per page (max 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |