list_environments
List GitLab project environments, filtering by exact name, name search, or state (available/stopped). Supports pagination for large projects.
Instructions
List environments in a GitLab project
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": "list_environments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Return environments with this exact name | |
| page | No | Page number for pagination (default: 1) | |
| search | No | Search environments by name | |
| states | No | Filter environments by state | |
| per_page | No | Number of items per page (max: 100, default: 20) | |
| project_id | No | Project ID or URL-encoded path |