Resolve local GitLab context
gitlab_resolve_contextResolves GitLab context (project ID, branch, merge request IID) from a local repository path to prepare for subsequent GitLab API operations.
Instructions
Discovers project_id, current branch, and merge_request_iid from repo_path. Use before other tools when working in a local clone.
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": {
"repo_path": "<repo_path>"
},
"name": "gitlab_resolve_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Absolute path to local clone. |