import_file_from_url
Fetch a remote URL and save its response body as a file in your Hatchable project, bypassing the context window. Use for importing seed data, vendor libraries, or assets. Supports public, api, migrations paths; 10 MB limit.
Instructions
Fetch a remote URL and save the response body as a project file — server-side, so the bytes never pass through your context window. Useful for seed data, vendor libs, and asset migration.
Capped at 10 MB and 10s timeout. Private/loopback addresses are rejected. Path must live under public/, api/, or migrations/, or be one of seed.sql / hatchable.toml / package.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| url | Yes | Full http(s) URL to fetch | |
| path | Yes | Destination path in the project |