Transform Artifact
transform_artifactRun restricted Python code to reduce stored JSON artifacts offline, avoiding refetches and chunk reads.
Instructions
Reduce stored JSON offline, without refetching or reading chunks.
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": {
"artifact_id": "<artifact_id>",
"code": "<code>",
"description": "<description>"
},
"name": "transform_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Restricted Python assigning result; no imports or call_tool capability. | |
| inputs | No | Optional JSON parameters exposed as inputs['params']; parsed stored JSON is inputs['artifact']. Neither grants filesystem or network access. | |
| artifact_id | Yes | Owned handle returned by execution or a run receipt. | |
| description | Yes | Bounded generic projection description, without input values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||