Skip to main content
Glama

bizhawk_read_range

Read contiguous bytes from emulator memory as a hex dump. Supports up to 4 KiB per call, reducing round-trips for memory inspection.

Instructions

PURPOSE: Read a contiguous range of bytes from emulator memory as a hex dump. USAGE: Use for >4 bytes (one round-trip vs N frame-latency hops). Max 4096 bytes/call (BizHawk serialization limit); chunk larger reads in 4 KiB. Powers the two-snapshot RAM-hunt workflow (snapshot before/after a known change, diff for matching deltas). BEHAVIOR: No side effects — pure read. Returns an error if domain is unknown, length is out of 1-4096, or address+length exceeds the domain. RETURNS: 'ADDR_HEX [N bytes, DOMAIN]:' header + space-separated 2-digit uppercase hex bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesStarting byte offset within the chosen memory domain (0-based per-domain, NOT a system-bus address). Reads [address, address+length).
lengthYesNumber of bytes to read (1-4096; hard cap is BizHawk's per-call serialization limit).
domainNoOptional case-sensitive memory domain name. Omit to use BizHawk's currently selected domain (see bizhawk_get_info → current_memory_domain). Discover available names with bizhawk_list_memory_domains; they vary per system (WRAM on SNES, RAM on NES, RDRAM on N64, 68K RAM on Genesis, MainRAM on PSX, EWRAM/IWRAM on GBA). Returns an error if the name doesn't match any domain on the loaded core.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

States 'No side effects — pure read' and lists three error conditions (unknown domain, length out of range, address+length exceeds domain). With no annotations, this provides good behavioral transparency, though it omits potential rate limits or other edge cases.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is structured with clear labels (PURPOSE, USAGE, BEHAVIOR, RETURNS) and every sentence adds value. It is concise, front-loading key information, and avoids redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description explains the return format (header + hex bytes) and error conditions. It also mentions the workflow context. However, it lacks an explicit example of the return string, which would aid completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage with descriptions for address (0-based per-domain), length (1-4096 with hard cap), and domain (optional with examples and error condition). Description adds context beyond schema, such as the per-domain offset meaning and the chunking limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'Read a contiguous range of bytes from emulator memory' with specific verb and resource. Distinguishes from siblings by noting usage for >4 bytes and references the two-snapshot workflow, making purpose unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use: for >4 bytes to avoid multiple round-trips and max 4096 bytes per call with chunking advice. Implies when not to use by contrasting with single-byte reads, but does not explicitly name sibling tools like bizhawk_read8/16/32 as alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dmang-dev/mcp-bizhawk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server