> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Artifacts

> Read, save and share reports with explicit ownership and visibility.

Read, save and share reports with explicit ownership and visibility.

## Tools

| Tool | OAuth scope | Purpose |
| - | - | - |
| `search_artifacts` | read | Find saved reports by text. |
| `get_artifact` | read | Read a report or version with access and sharing information. |
| `create_artifact` | write | Save a report owned by the approving person; private by default. |
| `update_artifact` | write | Save a new version with concurrency checks. |
| `set_artifact_visibility` | write | Owner-only sharing or return to private visibility. |

## Use this family

New artifacts created through MCP are saved reports owned by the person who approved the connection. Search and read include team reports and your own private reports. Machine credentials cannot use these tools. Every call checks current workspace membership; OAuth `read` allows search/read and `write` is required for changes.

New reports are **private by default**, like a report created in your Slack DM with Struct. Pass `visibility: "team"` only when you want to publish at creation. Creating requires the workspace to allow new reports and a caller-supplied `idempotency_key`: reuse that key for retries; use a new key for a separate report.

To share later, read the latest report with `get_artifact`, then call `set_artifact_visibility` with `visibility: "team"`, that read's `version` as `expected_version`, and its exact `updated_at` as `expected_updated_at`. Only the owner can share or make it private again. Sharing keeps the same URL, publishes the reviewed version and future edits, and allows team members and authorized Struct agents to edit. Earlier drafts and your conversation stay private. Setting `visibility: "private"` revokes future team access; copies already obtained cannot be recalled. A stale share/unshare fails; re-read and confirm your intent before trying again.

Before editing, read the complete latest report. `update_artifact` takes its `version` as `expected_version` and its `visibility` as `expected_visibility`; changes to either refuse the edit. Explicitly shared documents allow team collaboration. Reports created as team-visible remain editable only by their owner. When `get_artifact` returns `next_offset`, continue with that page's `version` and the next offset.

## Inputs and verification

Use the connected server's discovered input schema for exact argument names, required fields and supported values. Read returned IDs from current results and follow pagination. The server checks current workspace permissions on each call. Report the actual result and any remaining limitations; do not substitute a successful tool connection for task verification.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.