description property
Tool description for AI agents
Should clearly explain what the tool does and when to use it.
Implementation
@override
String get description => '''
Execute Dart code in an isolated context for quick calculations and testing.
Security features:
- Code runs in a separate isolate
- Timeout enforcement (default 5s, max 30s)
- Memory limits (512MB max)
- Blocked dangerous imports (dart:io, dart:html, dart:mirrors)
Supported operations:
- Basic arithmetic: 2 + 2, 10 * 5, etc.
- String literals: "Hello, World!"
- List literals: [1, 2, 3]
- Map literals: {"key": "value"}
Note: This is a safe evaluation environment, not a full Dart REPL.
For complex operations, use the ServerPod console directly.
''';