hf_space_hardware
Change a Hugging Face Space's hardware tier to adjust compute, and set sleep_minutes to pause paid billing after inactivity.
Instructions
Change a Space's hardware (e.g. "t4-small", "a10g-small", or "cpu-basic" for free).
Paid hardware is billed per minute while the Space runs. sleep_minutes > 0 puts the Space to sleep after that long without visitors, which pauses the billing.
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": {
"space_id": "<space_id>",
"hardware": "<hardware>"
},
"name": "hf_space_hardware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hardware | Yes | ||
| space_id | Yes | ||
| sleep_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |