artifacts_get
Fetch an artifact's metadata by id or slug — title, access level, version, view count, URL, and events: what visitors pressed on the published page (elements marked data-track, see artifacts.create), per name with count and first/last time. Set recent_events to also get the last presses one by one. Set include_html=true to also return the latest HTML body (so you can read-then-edit before calling artifacts.update).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "artifacts_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | The artifact slug. Pass this or artifact_id. | |
| artifact_id | No | The artifact id. Pass this or slug. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| include_html | No | If true, include the latest version's HTML body. | |
| recent_events | No | How many of the latest presses to list one by one (name + time, newest first), 0-200. Totals per name are always returned. |