refresh_object_ids
Re-query a pfSense API endpoint to fetch current object IDs before update or delete operations, preventing failures caused by IDs shifting after deletions.
Instructions
Refresh object IDs by re-querying an endpoint (handles ID changes after deletions).
pfSense object IDs are non-persistent array indices that change after any deletion. Call this before performing update/delete operations to get fresh IDs.
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>"
},
"name": "refresh_object_ids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | Relative API path (e.g. "/firewall/rules", "/firewall/aliases") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||