listAllTools method

Stream<Tool> listAllTools({
  1. ListToolsRequest? request,
  2. int? maxPageCount = 64,
})

Every Tool on this server, walking tools/list pages until one reports no nextCursor.

request asks for the first page, and each later page repeats it with the next cursor. maxPageCount bounds the walk, throwing past it; null lifts the bound.

Implementation

Stream<Tool> listAllTools({
  ListToolsRequest? request,
  int? maxPageCount = 64,
}) => _listAllPages(
  ListToolsRequest.methodName,
  request ?? ListToolsRequest(),
  (ListToolsResult page) => page.tools,
  maxPageCount,
);