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

> ## Agent Instructions
> To act on Atlan objects, use the Atlan MCP server at https://api.atlan.com/mcp or the atlanai CLI; `atlanai --map json` prints its command map. Run a read-only identity check before any write.
> The docs MCP server at /mcp searches these docs only. It cannot read or change Atlan objects.
> SDK packages: Python `atlanai` (PyPI) and TypeScript `@atlanai/sdk` (npm). Show Python first, then TypeScript.

# Create and relate an artifact

> Create an artifact and relate it to an existing artifact.

Use `registry__create_artifact_linked` when a new artifact belongs beside an
existing one.

* Required inputs: `kind`, `metadata`, `subject_id`, and `rel_type`.
* Optional inputs: `attributes`, `session_id`, and Gateway's `rationale`.
* Effect: two writes; not idempotent.

If creation succeeds but the relationship fails, keep the returned new handle
and repair the relationship with `registry__relate_artifact`. Calling this
tool again would create another artifact.
