home / skills / bdambrosio / cognitive_workbench / debug-get-local-grid
This skill helps you debug and inspect the raw local_grid data from world_state to validate coordinate systems and grid structure.
npx playbooks add skill bdambrosio/cognitive_workbench --skill debug-get-local-gridReview the files below or copy the command above to add this skill to your agents.
---
name: debug-get-local-grid
type: python
hidden: true
description: "Debug tool: Get raw local_grid from world_state"
---
# debug-get-local-grid
Debug tool for testing coordinate system. Returns raw local_grid data from world_state.
## Input
None
## Output
Returns uniform return format with:
- `value`: Summary text
- `data`: Raw local_grid dict with:
- `center`: `{x, y, z, yaw}` (absolute coordinates)
- `radius`: int
- `cells`: Dict of cell data (keyed by "x,y,z")
## Notes
- Hidden from planner catalog (debug/testing only)
- Returns raw internal grid structure
- Accessible via direct `{"type": "debug-get-local-grid"}` invocation
This skill provides a debug endpoint that returns the raw local_grid structure from the agent's world_state. It is intended for testing and inspecting the coordinate system, grid layout, and per-cell metadata. Use it to verify that the agent's local mapping and coordinate transforms are correct.
When invoked with a direct debug call, the skill reads the world_state and extracts the local_grid object without modification. It returns a uniform JSON with a human-readable summary in value and the unaltered local_grid dict in data. The local_grid contains center coordinates, integer radius, and a dictionary of cells keyed by "x,y,z".
What does the returned format look like?
Response contains a "value" string summary and "data" with the raw local_grid: center {x,y,z,yaw}, radius as int, and cells keyed by "x,y,z".
Is this safe to call in production?
This is a debug-only tool that exposes internal structures. Prefer using it in testing or with secure logging; avoid exposing outputs to end users.