install_asset
Install Godot assets from the Asset Library or direct download, extracting them safely into your project with verification.
Instructions
Download an asset from the Godot Asset Library and extract it into a project. Provide assetId (download URL and sha256 are resolved and verified via the Asset Library) or a direct downloadUrl. The archive's single wrapping folder is stripped by default so addons land under res://addons/. Files are written into the project (existing files at the same path are overwritten) and imported the next time the project is opened or run. Archive entries that would escape the project directory are rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | No | Asset Library asset id (from search_assets). The download URL and hash are looked up automatically. | |
| libraryUrl | No | Override the Asset Library API base URL used to resolve assetId. | |
| verifyHash | No | Verify the download against the Asset Library's sha256 hash (only when using assetId). Default: true. | |
| downloadUrl | No | Direct URL to a .zip archive, used instead of assetId. No hash verification is performed for arbitrary URLs. | |
| projectPath | Yes | Path to the Godot project directory. | |
| subdirectory | No | Project-relative directory to extract into (e.g. 'addons'). Default: project root. | |
| stripTopLevel | No | Strip the archive's single wrapping folder. Default: true. |