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 with a Free-tier GitLab token. The catalog is scoped to the token that asks, so the count moves with both its tier and its permissions: higher tiers expose more actions, and administration domains only appear to tokens allowed to use them.

Back to the server card

  1. template.ci_yml_getGet 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)

  2. template.ci_yml_listList 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

  3. template.dockerfile_getGet 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)

  4. template.dockerfile_listList 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

  5. template.gitignore_getGet 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)

  6. template.gitignore_listList 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

  7. template.license_getGet 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)

  8. template.license_listList 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

  9. template.lintCI 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)

  10. template.lint_projectCI 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)

  11. template.project_template_getGet 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), template_type (string)

  12. template.project_template_listList 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), template_type (string)