set_fog
Adjust Three.js scene fog color, near/far or density, and background color in a live browser preview; changes are undoable and not saved to source.
Instructions
[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Change scene fog (color, near/far or density) and the background color.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_fog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| far | No | Fog only | |
| near | No | Fog only | |
| color | No | #RRGGBB | |
| density | No | FogExp2 only | |
| background | No | Scene background color, #RRGGBB |