getToolsWithHttpInfo method
Lists every tool the caller's org and project can reach, from every source, each flagged with whether it is activated.
Lists every tool the caller's org and project can reach, from every source, each flagged with whether it is activated. This is the discovery surface: one flat set of names spanning connector actions, user functions, zap-service routes, agents, skills and the org's own external MCP servers, deduplicated by name so the highest-precedence source wins a collision. It lists; it does not call — dispatch is POST /v1/tools/call.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getToolsWithHttpInfo({ String? source_, String? activated, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/tools';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (source_ != null) {
queryParams.addAll(_queryParams('', 'source', source_));
}
if (activated != null) {
queryParams.addAll(_queryParams('', 'activated', activated));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}