find_object_by_field
Find a pfSense object by a specific field value to get a stable reference, since IDs can change after deletions.
Instructions
Find an object by a specific field value (safer than using IDs).
Use this instead of IDs when you need a stable reference to an object, since pfSense object IDs change after deletions.
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": {
"endpoint": "<endpoint>",
"field": "<field>",
"value": "<value>"
},
"name": "find_object_by_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field name to search by (e.g. "descr", "name") | |
| value | Yes | Value to search for | |
| endpoint | Yes | Relative API path of a collection (e.g. "/firewall/rules", "/firewall/aliases", "/interfaces") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||