# Resume a swap, vault or bridge task from Portfolio or MCP

Plan a swap and vault deposit, preserve a gas reserve and resume the unfinished step after a browser close, agent restart or partial bridge delivery.

Guide: https://www.bitpont.com/help/ai-agents/resumable-portfolio-tasks/

## 1. Specify the exact assets and destination

Choose swap → deposit, withdraw → swap or bridge → deposit. Create the task with a persistent requestId. Save data.task.id as taskId with the original workspace. Choose Base or Ethereum and a supported exact vault. For a Base swap of 100 USDC to native ETH, set amount to 100000000, specify the native ETH address as zero, and select a verified WETH vault for the deposit. Supply the minimum ETH output and gas reserve in wei. Bitpont wraps eligible settled ETH before depositing WETH. A USDC vault accepts a different asset.

## 2. Review and sign the next step

Read taskStatus and pass data.task.step and data.task.attempt with taskId to taskPrepare. Inspect the resulting execution ticket, sign its exact transaction with the authorized wallet and submit it through executionSubmit. Check allowances and any required wrap separately. A follow-up deposit must fit the settled proceeds, available wallet balance and gas reserve. The balance check reflects the time of preparation or submission. Gas costs and other wallet activity can change the amount available later.

## 3. Recover a partly completed task

After a restart, find the original task using taskList in the same workspace. Refresh taskStatus to see the recorded executions and what still needs attention. If the swap settled, check its receipt and the wallet that received the proceeds. If a bridge is waiting for delivery, wait for evidence on the destination chain. Prepare a remaining step only when its checks allow it.

## List tasks in the original private workspace

```
curl -fsS "https://www.bitpont.com/api/v1/agent/tasks/list" \
  -H 'Content-Type: application/json' \
  -H "X-Bitpont-Workspace: ${BITPONT_WORKSPACE:?Set your original workspace}" \
  -d '{"limit":10}'
```

## Tools

- `taskCreate`
- `taskList`
- `taskStatus`
- `taskPrepare`
- `swapReceipt`
- `executionSubmit`

## Further reading

- [Open financial tasks in Portfolio](<https://www.bitpont.com/portfolio/activity/#portfolioFinancialTasks>)
- [Agent recovery and retries](<https://www.bitpont.com/developers/agent-recovery/>)
- [Recover unfinished financial tasks after an agent restart](<https://www.bitpont.com/help/ai-agents/resume-workspace-task-inbox/>)
- [Verify the tokens and fees from an agent swap](<https://www.bitpont.com/help/ai-agents/verified-swap-receipts/>)
- [Find lending markets, vaults and staking actions for an agent](<https://www.bitpont.com/help/ai-agents/lending-vaults-and-staking/>)
