xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
  1. Home
  2. ›
  3. Mcps
  4. ›
  5. Extract Map Lights

Mcps
Mcps
Tool

Extract Map Lights

extract_map_lights

Extract light sources from a BSP map. Returns lights from two sources: (1) entity lights — 'light' entities in the BSP entity lump with position, intensity, color, radius. (2) lightgrid-mined lights — inferred from the baked radiosity lightgrid by finding bright spots and clustering nearby samples. Useful for path tracing setup: pass extracted lights to the renderer's point light buffer. Parameters: include_lightgrid (default true), lightgrid_threshold (0-255, default 180), cluster_radius (Quake units, default 128).


Pricing

Per call

$0.02

Model

time-based


Pay only for what you use. No subscriptions.
Inputs

include_lightgrid

booleannull

lightgrid_threshold

integernull

cluster_radius

numbernull

map *

string
Try It
API
MCP Config
Input Parameters
include_lightgrid
Also mine lightgrid for inferred lights (default: true)
lightgrid_threshold
Lightgrid brightness threshold 0-255 (default: 180). Lower = more lights.
cluster_radius
Cluster radius in Quake units for grouping nearby lightgrid samples (default: 128)
map *
BSP map (bare name, path, or pk3 lookup)
Cost per run
Execution cost
$0.02
Deducted from your xPay allowance
xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service