Action domain

snippet

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.

34 · actions6 · destructive17 · 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 980 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.6.1 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. snippet.content

    Snippet Contentread-only

    Read a personal snippet's raw content. Returns: the snippet ID and raw text content. See also: snippet.get, snippet.file_content.

    Required parameters: snippet_id (integer)

    Fine-grained token: Snippet: Read at user

  2. snippet.create

    Snippet Create

    Create a personal snippet. Returns: the created snippet with ID, visibility, author, files, and web URL. See also: snippet.get, snippet.update, snippet.list.

    Required parameters: title (string)

    At least one of: file_name (string) + content (string) or files (array)

    Fine-grained token: Snippet: Create at user

  3. snippet.delete

    Snippet Deletedestructive

    Delete a personal snippet permanently. Returns: a success confirmation. See also: snippet.get, snippet.list.

    Required parameters: snippet_id (integer)

    Fine-grained token: Snippet: Delete at user

  4. snippet.discussion_add_note

    Add Snippet Discussion Note

    Add a reply note to an existing snippet discussion thread. Returns: the created note (author, body, timestamps). See also: snippet.discussion_create, snippet.discussion_get, snippet.discussion_update_note.

    Required parameters: body (string), discussion_id (string), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Create at project

  5. snippet.discussion_create

    Create Snippet Discussion

    Create a new discussion thread on a project snippet with an initial note. Returns: the created thread with its first note. See also: snippet.discussion_add_note, snippet.discussion_list, snippet.note_create.

    Required parameters: body (string), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Create at project

  6. snippet.discussion_delete_note

    Delete Snippet Discussion Notedestructive

    Delete a note from a snippet discussion thread (destructive). Returns: a deletion confirmation message. See also: snippet.discussion_update_note, snippet.discussion_get, snippet.discussion_list.

    Required parameters: discussion_id (string), note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Delete at project

  7. snippet.discussion_get

    Get Snippet Discussionread-only

    Get a single snippet discussion thread by its discussion id. Returns: the thread with every note (author, body, system flag, resolvable/resolved state). See also: snippet.discussion_list, snippet.discussion_add_note, snippet.project_get.

    Required parameters: discussion_id (string), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Read at project

  8. snippet.discussion_list

    List Snippet Discussionsread-only

    List discussion threads on a project snippet with ordering and offset pagination. Returns: discussion threads with their notes (author, body, system flag, resolvable state) and pagination metadata. See also: snippet.discussion_get, snippet.discussion_create, snippet.project_get, snippet.note_list.

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

    Fine-grained token: Work Item: Read at project

  9. snippet.discussion_update_note

    Update Snippet Discussion Note

    Update the body of a note in a snippet discussion thread. Returns: the updated note. See also: snippet.discussion_add_note, snippet.discussion_delete_note, snippet.discussion_get.

    Required parameters: body (string), discussion_id (string), note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Update at project

  10. snippet.emoji_snippet_create

    Snippet Emoji Create

    Add an emoji reaction to a project snippet. Returns: the created award with its emoji name, awarding user object, timestamps, and awardable id/type. See also: snippet.emoji_snippet_list, snippet.emoji_snippet_delete.

    Required parameters: name (string), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Create at project

  11. snippet.emoji_snippet_delete

    Snippet Emoji Deletedestructive

    Remove an emoji reaction from a project snippet by award id. Returns: a success confirmation naming the award emoji. See also: snippet.emoji_snippet_list, snippet.emoji_snippet_get.

    Required parameters: award_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Delete at project

  12. snippet.emoji_snippet_get

    Snippet Emoji Getread-only

    Get a single emoji reaction on a project snippet by award id. Returns: the award with its emoji name, awarding user object, timestamps, and awardable id/type. See also: snippet.emoji_snippet_list, snippet.emoji_snippet_delete.

    Required parameters: award_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Read at project

  13. snippet.emoji_snippet_list

    Snippet Emoji Listread-only

    List all emoji reactions on a project snippet. Returns: each award with its emoji name, the awarding user object, awardable id/type, and pagination metadata. See also: snippet.emoji_snippet_get, snippet.emoji_snippet_create, snippet.project_get.

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

    Fine-grained token: Work Item: Read at project

  14. snippet.emoji_snippet_note_create

    Snippet Note Emoji Create

    Add an emoji reaction to a project snippet note. Returns: the created award with its emoji name, awarding user object, timestamps, and awardable id/type. See also: snippet.emoji_snippet_note_list, snippet.emoji_snippet_note_delete.

    Required parameters: name (string), note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Create at project

  15. snippet.emoji_snippet_note_delete

    Snippet Note Emoji Deletedestructive

    Remove an emoji reaction from a project snippet note by award id. Returns: a success confirmation naming the award emoji. See also: snippet.emoji_snippet_note_list, snippet.emoji_snippet_note_get.

    Required parameters: award_id (integer), note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Delete at project

  16. snippet.emoji_snippet_note_get

    Snippet Note Emoji Getread-only

    Get a single emoji reaction on a project snippet note by award id. Returns: the award with its emoji name, awarding user object, timestamps, and awardable id/type. See also: snippet.emoji_snippet_note_list, snippet.emoji_snippet_note_delete.

    Required parameters: award_id (integer), note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Read at project

  17. snippet.emoji_snippet_note_list

    Snippet Note Emoji Listread-only

    List all emoji reactions on a project snippet note (comment). Returns: each award with its emoji name, the awarding user object, awardable id/type, and pagination metadata. See also: snippet.emoji_snippet_note_get, snippet.emoji_snippet_note_create, snippet.note_get.

    Required parameters: note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Read at project

  18. snippet.explore

    Snippet Exploreread-only

    List public snippets across the instance. Returns: public snippets with author, visibility, and pagination metadata. See also: snippet.list, snippet.get.

    Required parameters: No required parameters

    Fine-grained token: Snippet: Read at user

  19. snippet.file_content

    Snippet File Contentread-only

    Read one file from a multi-file personal snippet at a ref. Returns: the snippet ID, ref, file name, and raw content. See also: snippet.content, snippet.get.

    Required parameters: file_name (string), ref (string), snippet_id (integer)

    Fine-grained token: Snippet: Read at user

  20. snippet.get

    Snippet Getread-only

    Get a single personal snippet by ID. Returns: snippet metadata, visibility, author, files, and web URL. See also: snippet.list, snippet.content, snippet.update, snippet.delete.

    Required parameters: snippet_id (integer)

    Fine-grained token: Snippet: Read at user

  21. snippet.list

    Snippet Listread-only

    List snippets owned by the authenticated user. Returns: snippets with title, visibility, author, files, and pagination metadata. See also: snippet.get, snippet.create, snippet.explore.

    Required parameters: No required parameters

    Fine-grained token: Snippet: Read at user

  22. snippet.list_all

    Snippet List Allread-only

    List all snippets on the instance (admin). Returns: snippets with author, visibility, repository storage, and pagination metadata. See also: snippet.list, snippet.explore, snippet.get.

    Required parameters: No required parameters

    Fine-grained token: Snippet: Read at user

  23. snippet.note_create

    Snippet Note Create

    Add a comment (note) to a project snippet. Returns: the created note with id, author, body, and timestamps. See also: snippet.note_list, snippet.note_get, snippet.project_get.

    Required parameters: body (string), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Create at project

  24. snippet.note_delete

    Snippet Note Deletedestructive

    Delete a snippet note permanently. Returns: a success confirmation naming the note, snippet, and project. See also: snippet.note_get, snippet.note_list.

    Required parameters: note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Delete at project

  25. snippet.note_get

    Snippet Note Getread-only

    Get a single snippet note by its ID. Returns: the note with author, body, timestamps, and position. See also: snippet.note_list, snippet.note_update, snippet.note_delete.

    Required parameters: note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Read at project

  26. snippet.note_list

    Snippet Note Listread-only

    List all notes (comments) on a project snippet. Returns: notes with author, body, system flag, and pagination metadata. See also: snippet.note_get, snippet.note_create, snippet.project_get.

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

    Fine-grained token: Work Item: Read at project

  27. snippet.note_update

    Snippet Note Update

    Update a snippet note's body. Returns: the updated note with new body and updated_at timestamp. See also: snippet.note_get, snippet.note_list, snippet.note_delete.

    Required parameters: body (string), note_id (integer), project_id (string|integer), snippet_id (integer)

    Fine-grained token: Work Item: Update at project

  28. snippet.project_content

    Project Snippet Contentread-only

    Read a project snippet's raw content. Returns: the snippet ID and raw text content. See also: snippet.project_get, snippet.project_list.

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

    Fine-grained token: Snippet: Read at project

  29. snippet.project_create

    Project Snippet Create

    Create a project snippet. Returns: the created snippet with ID, visibility, author, files, and web URL. See also: snippet.project_get, snippet.project_update, snippet.project_list.

    Required parameters: project_id (string), title (string)

    At least one of: file_name (string) + content (string) or files (array)

    Fine-grained token: Snippet: Create at project

  30. snippet.project_delete

    Project Snippet Deletedestructive

    Delete a project snippet permanently. Returns: a success confirmation. See also: snippet.project_get, snippet.project_list.

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

    Fine-grained token: Snippet: Delete at project

  31. snippet.project_get

    Project Snippet Getread-only

    Get a single project snippet. Returns: snippet metadata, visibility, author, files, and web URL. See also: snippet.project_list, snippet.project_content, snippet.project_update, snippet.project_delete.

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

    Fine-grained token: Snippet: Read at project

  32. snippet.project_list

    Project Snippet Listread-only

    List a project's snippets. Returns: snippets with title, visibility, author, files, and pagination metadata. See also: snippet.project_get, snippet.project_create, snippet.list.

    Required parameters: project_id (string|integer)

    Fine-grained token: Snippet: Read at project

  33. snippet.project_update

    Project Snippet Update

    Update a project snippet. Returns: the updated snippet with metadata, files, and web URL. See also: snippet.project_get, snippet.project_delete, snippet.project_list.

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

    Fine-grained token: Snippet: Update at project

  34. snippet.update

    Snippet Update

    Update a personal snippet. Returns: the updated snippet with metadata, files, and web URL. See also: snippet.get, snippet.delete, snippet.list.

    Required parameters: snippet_id (integer)

    Fine-grained token: Snippet: Update at user