Action domain

template

Every action this domain exposes through gitlab_execute_action, from the gitlab://tools manifest. Each entry folds out to its full upstream description and required parameters.

12 · actions0 · destructive12 · read-only

Counted against gitlab.com, which is the only host this endpoint talks to, with a token it resolves to the Ultimate tier: to use it against a self-managed instance, run the server yourself — its documentation covers that. The catalog is scoped to the token that asks, so the count moves with both its tier and its permissions: a Free token sees fewer actions, a member of a group on a paid plan sees that plan's, and administration domains only appear to tokens allowed to use them. That is why the figures differ elsewhere: the upstream project counts 872 operations on Community Edition and up to 1,099 on GitLab.com's top tier, while this deployment publishes 977 because it is OAuth-only and acts with your token, so the administration domains a non-admin account cannot call never appear. All three describe the same catalog, counted from three vantage points.

Each entry also says what a GitLab fine-grained personal access token needs to run it, as GitLab 19.5.0 declares it: every permission of one line, at one of the boundaries named. Where there are alternatives, any one is enough. What follows "Some calls also need" is needed only by the calls that send that request, and the parts of the answer GitLab serves empty to such a token are listed apart.

Back to the server card

  1. template.ci_yml_get

    Get CI Yml Templateread-only

    Get a single GitLab CI/CD pipeline YAML template by key. Returns: the template name and full YAML content to copy into a .gitlab-ci.yml file. See also: template.ci_yml_list, template.lint, repository.file_create.

    Required parameters: key (string)

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  2. template.ci_yml_list

    List CI Yml Templatesread-only

    List the GitLab-provided CI/CD pipeline YAML templates. Returns: available templates with key and name, plus pagination metadata. See also: template.ci_yml_get, template.lint, repository.file_create.

    Required parameters: No required parameters

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  3. template.dockerfile_get

    Get Dockerfile Templateread-only

    Get a single Dockerfile template by key. Returns: the template name and full Dockerfile content ready to commit as a project's Dockerfile. See also: template.dockerfile_list, template.gitignore_get.

    Required parameters: key (string)

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  4. template.dockerfile_list

    List Dockerfile Templatesread-only

    List available Dockerfile templates with pagination and sorting. Returns: matching templates with key and name plus pagination metadata. See also: template.dockerfile_get, template.gitignore_list.

    Required parameters: No required parameters

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  5. template.gitignore_get

    Get Gitignore Templateread-only

    Get one .gitignore template by key (e.g. Go, Python, Node). Returns: the template's name and full file content ready to copy into .gitignore. See also: template.gitignore_list, repository.file_create.

    Required parameters: key (string)

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  6. template.gitignore_list

    List Gitignore Templatesread-only

    List available .gitignore templates with order_by, sort, and offset or keyset pagination. Returns: each template's key and name, plus pagination metadata. See also: template.gitignore_get, repository.file_create.

    Required parameters: No required parameters

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  7. template.license_get

    Get License Templateread-only

    Get a single license template by key, optionally substituting project and fullname placeholders. Returns: the license's key, name, nickname, featured flag, source/HTML URLs, description, conditions, permissions, limitations, and rendered content. See also: template.license_list, repository.file_create.

    Required parameters: key (string)

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  8. template.license_list

    List License Templatesread-only

    List available license templates with an optional popular filter, order_by/sort, and offset or keyset pagination. Returns: each template's key, name, nickname, featured flag, source/HTML URLs, description, conditions, permissions, limitations, and content, with pagination metadata. See also: template.license_get, repository.file_create.

    Required parameters: No required parameters

    Fine-grained token: not judged by the grant (GitLab authenticates this request another way)

  9. template.lint

    CI Lintread-only

    Validate inline .gitlab-ci.yml content within a project namespace. Returns: validity flag, errors, warnings, the merged YAML, and resolved includes. See also: template.lint_project, pipeline.create, ci_catalog.list.

    Required parameters: content (string), project_id (string|integer)

    Fine-grained token: CI Config: Validate at project

  10. template.lint_project

    CI Lint Projectread-only

    Validate a project's committed .gitlab-ci.yml at a branch or tag. Returns: validity flag, errors, warnings, the merged YAML, and resolved includes. See also: template.lint, pipeline.create, repository.file_get.

    Required parameters: project_id (string|integer)

    Fine-grained token: CI Config: Read at project

  11. template.project_template_get

    Get Project Templateread-only

    Returns: one project template's full content by template_type and key. See also: template.project_template_list, project.create.

    Required parameters: key (string), project_id (string|integer), template_type (string)

    Fine-grained token: Template: Read at project

  12. template.project_template_list

    List Project Templatesread-only

    List project templates of a given template_type with optional id/type filters, order_by/sort, and offset or keyset pagination. Returns: each template's key, name, nickname, popularity, and source/HTML URLs. See also: template.project_template_get, project.create.

    Required parameters: project_id (string|integer), template_type (string)

    Fine-grained token: Template: Read at project