oc_python
Run inline Python source or an engagement-relative script file inside the OpenCyber container to execute security tasks asynchronously with client-cancellable jobs.
Instructions
Run inline Python source or an engagement-relative Python file inside the OpenCyber container. Provide exactly one of source or path. Execution uses the OpenCyber Python environment and is asynchronous and client-cancellable.
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": {
"engagement_id": "<engagement_id>"
},
"name": "oc_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| stdin | No | ||
| source | No | ||
| environment | No | ||
| engagement_id | Yes | ||
| script_arguments | No | ||
| working_directory | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||