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 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.
snippet.contentSnippet Contentread-onlyRead 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)snippet.createSnippet CreateCreate 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)orfiles (array)snippet.deleteSnippet DeletedestructiveDelete a personal snippet permanently. Returns: a success confirmation. See also: snippet.get, snippet.list.
Required parameters:
snippet_id (integer)snippet.discussion_add_noteAdd Snippet Discussion NoteAdd 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),snippet_id (integer)snippet.discussion_createCreate Snippet DiscussionCreate 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),snippet_id (integer)snippet.discussion_delete_noteDelete Snippet Discussion NotedestructiveDelete 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),snippet_id (integer)snippet.discussion_getGet Snippet Discussionread-onlyGet 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),snippet_id (integer)snippet.discussion_listList Snippet Discussionsread-onlyList discussion threads on a project snippet with ordering and keyset 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),snippet_id (integer)snippet.discussion_update_noteUpdate Snippet Discussion NoteUpdate 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),snippet_id (integer)snippet.emoji_snippet_createSnippet Emoji CreateAdd 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),snippet_id (integer)snippet.emoji_snippet_deleteSnippet Emoji DeletedestructiveRemove 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),snippet_id (integer)snippet.emoji_snippet_getSnippet Emoji Getread-onlyGet 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),snippet_id (integer)snippet.emoji_snippet_listSnippet Emoji Listread-onlyList 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),snippet_id (integer)snippet.emoji_snippet_note_createSnippet Note Emoji CreateAdd 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),snippet_id (integer)snippet.emoji_snippet_note_deleteSnippet Note Emoji DeletedestructiveRemove 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),snippet_id (integer)snippet.emoji_snippet_note_getSnippet Note Emoji Getread-onlyGet 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),snippet_id (integer)snippet.emoji_snippet_note_listSnippet Note Emoji Listread-onlyList 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),snippet_id (integer)snippet.exploreSnippet Exploreread-onlyList 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
snippet.file_contentSnippet File Contentread-onlyRead 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)snippet.getSnippet Getread-onlyGet 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)snippet.listSnippet Listread-onlyList 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
snippet.list_allSnippet List Allread-onlyList 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
snippet.note_createSnippet Note CreateAdd 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.get.
Required parameters:
body (string),project_id (string),snippet_id (integer)snippet.note_deleteSnippet Note DeletedestructiveDelete 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),snippet_id (integer)snippet.note_getSnippet Note Getread-onlyGet 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),snippet_id (integer)snippet.note_listSnippet Note Listread-onlyList 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.get.
Required parameters:
project_id (string),snippet_id (integer)snippet.note_updateSnippet Note UpdateUpdate 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),snippet_id (integer)snippet.project_contentProject Snippet Contentread-onlyRead 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),snippet_id (integer)snippet.project_createProject Snippet CreateCreate 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)orfiles (array)snippet.project_deleteProject Snippet DeletedestructiveDelete a project snippet permanently. Returns: a success confirmation. See also: snippet.project_get, snippet.project_list.
Required parameters:
project_id (string),snippet_id (integer)snippet.project_getProject Snippet Getread-onlyGet 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),snippet_id (integer)snippet.project_listProject Snippet Listread-onlyList 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)snippet.project_updateProject Snippet UpdateUpdate 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),snippet_id (integer)snippet.updateSnippet UpdateUpdate 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)