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.
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_id": "<project_id>",
"url": "<url>",
"path": "<path>"
},
"name": "import_file_from_url"
}
}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 |