Create Artifact
lyzr_create_artifactCreates a new artifact for a user and session, storing content and metadata, and returns the created artifact.
Instructions
Create a new artifact for a user/session. Returns the created artifact.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"session_id": "<session_id>"
},
"name": "lyzr_create_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The artifact payload/content | |
| name | No | Artifact name | |
| user_id | Yes | User id that owns the artifact | |
| metadata | No | Arbitrary metadata to attach | |
| session_id | Yes | Session id the artifact belongs to | |
| description | No | Artifact description | |
| format_type | No | Format of the data, e.g. text, json, markdown (default text) |