computeToolIsolated function
Runs the tool named toolName with the configured timeout. Convenience
wrapper over runToolInIsolate, mirroring the native executor's API.
Implementation
Future<Map<String, Object?>> computeToolIsolated(
String toolName,
Map<String, Object?> args,
McpLimits limits,
) {
final timeoutMs = (args['timeoutMs'] as int?) ?? limits.timeoutMs;
return runToolInIsolate(
toolName,
args,
limits,
Duration(milliseconds: timeoutMs),
);
}