set_pyfilter_code
Replace the Python filter source for a service by providing code that imports pyfilter and decorates handlers. Server-side compilation validates the code and returns 400 on errors.
Instructions
Replace the Python filter source for a service.
The code must import pyfilter from firegex.nfproxy and decorate one
or more handlers. Firegex compiles the code server-side and returns 400
on syntax/import errors.
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": {
"service_id": "<service_id>",
"code": "<code>"
},
"name": "set_pyfilter_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | ||
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||