workflow_step_define
Register custom workflow step functions from Python source code. Define a function with signature def step(value, ctx) to process data within an AI agent's workflow.
Instructions
[workflow] Register custom step function from Python source. Must define def step(value, ctx): ....
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": {
"name": "<name>",
"source": "<source>"
},
"name": "workflow_step_define"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |