icp_deploy
Build and deploy a canister to the Internet Computer. Auto-detects Rust or Motoko projects, supports install, reinstall, or upgrade modes, and reuses an existing canister ID or creates a new one.
Instructions
Build and deploy a canister. Auto-detects Rust (Cargo.toml) or Motoko (dfx.json) projects.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "icp_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Install mode | upgrade |
| canister_id | No | Existing canister ID (creates new if not provided) | |
| project_path | Yes | Path to the project |