getToolsWithHttpInfo method

Future<Response> getToolsWithHttpInfo({
  1. String? source_,
  2. String? activated,
})

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:

  • String source_: Source keeps only tools from one source — connector, function, zap-service, agent, skill or mcp. Empty keeps every source.

  • String activated: Activated keeps only the tools activated for the caller's org and project, and only when it is exactly the string "true".

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,
  );
}