share
Publish a public link to an artifact so anyone can view it. Optionally pin a version or set an expiry.
Instructions
Publish a public link. Anyone with the link can open it.
Permission: share.
Arguments: artifact_id (required), version (optional; passing it pins that version), ttl_days (optional; ignored when AM_SHARE_TTL_DAYS is 0), pin (optional).
Returns: state, url, version, follows ("latest" or "pinned"), expires_at, lifetime, reused.
Omit version to keep serving the latest done version on the same URL.
Example: share(artifact_id="art_example")
unshare revokes it immediately.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | Freeze one version. Optional. True with no version pins the latest done version now. False with no version follows later versions. | |
| version | No | Done version to pin. Optional. Omit it to follow the latest done version. Passing a version freezes that version on its own link. | |
| ttl_days | No | Share lifetime in days. Optional. Defaults to AM_SHARE_TTL_DAYS. Ignored when AM_SHARE_TTL_DAYS is 0 (the link lasts until revoked). Otherwise capped by AM_SHARE_TTL_MAX_DAYS. | |
| artifact_id | Yes | Artifact to publish. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||