Skip to content

gatos.audio_clip

tool Camera and media

List, retrieve, chunk-upload, or delete stored audio clips.

Use when
Managing the clip store separately from playback channels.
Availability
audio_enabled and AudioStore limits.

Input

FieldTypeRequirementDescription
operationstringRequiredlist, retrieve, upload, or delete.
namestring | nullOptional · nullClip name for retrieve, upload, or delete.
offsetintegerOptional · 0Decoded byte offset for an upload chunk.
completebooleanOptional · trueFinalize the upload after this chunk.
data_base64string | nullOptional · nullBase64-encoded bytes for upload.

Operation call shapes

Choose an operation below. Its required payload and a complete call stay together—there is no second table to cross-reference.

list

List stored clips.

Arguments for this operation

{ operation: "list" }

Example

gatos.audio_clip({"operation":"list"})

retrieve

Return metadata and MCP AudioContentBlock for known formats, otherwise an embedded binary resource.

Arguments for this operation

{ operation: "retrieve", name }

Example

gatos.audio_clip({"operation":"retrieve","name":"launch.wav"})

upload

Write a bounded base64 chunk through AudioStore.

Arguments for this operation

{ operation: "upload", name, data_base64, offset?: decoded_byte_offset, complete?: boolean }

Example

gatos.audio_clip({"operation":"upload","name":"beep.wav","data_base64":"UklGRg==","offset":0,"complete":true})

delete

Remove a clip.

Arguments for this operation

{ operation: "delete", name }

Example

gatos.audio_clip({"operation":"delete","name":"beep.wav"})

Call example

gatos.audio_clip({"operation":"retrieve","name":"launch.wav"})

Result

Store metadata; retrieve additionally emits audio or embedded binary content.

Errors

  • ENOENT for a missing clip; EFBIG/ENOSPC/EEXIST/EPERM for store limits; EINVAL for malformed base64.

Operational notes

  • Known extensions include wav, mp3, ogg/oga, flac, m4a/mp4, and aac.
  • The HTTP request framing limit is 24 MiB; use upload chunks.