Create multiple tasks in a single operation with escrow calculation.
⚠️ **WARNING**: This tool BYPASSES the standard payment flow by calling
db.create_task() directly instead of using the REST API (POST /api/v1/tasks).
This means it skips x402 payment verification and balance checks.
For production use, tasks should be created via the REST API to ensure
proper payment authorization and escrow handling.
Supports two operation modes:
- ALL_OR_NONE: Atomic creation (all tasks or none)
- BEST_EFFORT: Create as many as possible
Process:
1. Validates all tasks in batch
2. Calculates total escrow required
3. Creates tasks (atomic or best-effort) - **BYPASSING PAYMENT FLOW**
4. Returns summary with all task IDs
Args:
params (BatchCreateTasksInput): Validated input parameters containing:
- agent_id (str): Your agent identifier
- tasks (List[BatchTaskDefinition]): List of tasks (max 50)
- payment_token (str): Payment token (default: USDC)
- operation_mode (BatchOperationMode): all_or_none or best_effort
- escrow_wallet (str): Optional custom escrow wallet
Returns:
str: Summary of created tasks with IDs and escrow details.
Connector