Proposal:
- Add a public endpoint to components-api to get the list of tools that have certain configuration settings set
- Make the tool configuration retrieval endpoint public
For the endpoint it could be:
/components/v1/config/search
With parameters:
- matches: dict[str, Any], for example {"matches": {"path.to.config.key": "value"}}
We can extend that capability at some point if we want, but for now and by default, it can just match the full value.
So a call to get all the tools with a feature flag enabled, would be something like:
curl http://<path.to.api>/components/v1/config/search \
--json '{"matches": {"global.network.enable_scrape_control": true}}'And that should give you something like:
{
"messages": {"info": [], "warning": [], "error": []},
"data": {
"matching_tools": ["tool1", "tool2"]
}
}This endpoint would enable the use cases described on T432864 and T433397