fetch_blocks
Get download URLs for blocks that ship real component code (hasCode=true). Requires an API key from https://motionsites.dev (Authorization: Bearer sk-ryai-...).
Returns one signed URL per file plus the dependency list. The code never enters your context — download each file straight to its destination: curl -fsSL '' -o components/Hero.tsx
Do NOT read the files back afterwards. They are already correct on disk, and a single component runs ~10,000 characters. Read one only if a build actually fails.
URLs expire in 15 minutes. Batch a whole page in one call.
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": {
"slugs": "<slugs>"
},
"name": "fetch_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slugs | Yes |