cpu_get_resource
Retrieve every game rule for one resource: mining, building and recipe inputs/outputs, cell storage caps, and transit fees. Pass the resource id; market price is handled elsewhere.
Instructions
Everything the rulebook holds about ONE resource ("what do I do with steel"), in one call. Input is the resource id as cpu_get_game_config lists it. Four roles kept apart: MINED BY — extractors that draw it from their own cell deposit; BUILD INPUT TO — buildings that burn it ONCE at construction; RECIPE INPUT TO — recipes consuming it on EVERY cycle, with the buildings that run them; RECIPE OUTPUT OF — recipes producing it. A building both built from and processing the resource appears in both groups. Also: the cell and hub shelves bounding how much one cell may hold, and its transit fee floor (per-unit minimum a foreign hub charges). Market price is NOT here — cpu_get_market_index owns it. A resource nothing touches answers with empty groups, not an error. Read-only. No session needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceId | Yes | The catalog id of the resource, e.g. `102`, as `cpu_get_game_config` lists it. |