Setup
Available tools
| Tool | Description |
|---|---|
save_artifact | Save a file or blob to the artifact store |
load_artifact | Load an artifact by filename (optionally a specific version) |
list_artifacts | List all saved artifact filenames in the current session |
save_artifact
| Parameter | Type | Description |
|---|---|---|
filename | str | Name of the artifact (e.g. "report.md") |
content | str | Text content, or base64-encoded binary data |
mime_type | str | MIME type (auto-detected from filename if empty) |
is_base64 | bool | Set true if content is base64-encoded binary |
load_artifact
| Parameter | Type | Description |
|---|---|---|
filename | str | Name of the artifact to load |
version | int | null | Specific version to load (latest if omitted) |
list_artifacts
Returns a newline-separated list of all saved artifact filenames, or"No artifacts saved.".
Versioning
Everysave_artifact call increments the version number for that filename. The version is tracked in EventActions.artifact_delta so artifact changes appear in the session event log.
CallContext API
Tools can also save and load artifacts programmatically viaCallContext:
Artifact services
| Service | Storage | Install |
|---|---|---|
InMemoryArtifactService | In-memory (volatile) | Built-in |
FileArtifactService | Local filesystem | Built-in |