create_label
Create a new label in a Gitea repository by providing a unique name and hex color, with optional description. Ensures label creation is straightforward, returning the assigned ID.
Instructions
Create a label. name required and MUST be unique in the repo (a duplicate -> conflict error). color is 6-digit hex, with or without a leading '#' (e.g. '#ff0000' or 'ff0000'). description optional. Returns the label with its id.
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": {
"name": "<name>",
"color": "<color>"
},
"name": "create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label name | |
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| color | Yes | Label color (6-digit hex, e.g. #ff0000) | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| description | No | Label description |