Upload Code Step File
uploadCodeStepFileUpload one UTF-8 file of a code step's program to the content-addressed store. Put the returned sha256 and sizeBytes entry in the revision's config source.bundle manifest (using the returned bucket) via updateRevision on a draft. Uploading does not change a revision or make code live.
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": {
"agent_id": "<agent_id>",
"content": "<content>"
},
"name": "uploadCodeStepFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The file's contents, as UTF-8 text | |
| agent_id | Yes | The code step's unique identifier |