Skip to main content
Glama

pwndbg_pagewalk

Walks page tables for a virtual address, displaying the full path from PGD to PTE with physical frame numbers and page flags for kernel debugging.

Instructions

Walk page tables for a virtual address.

pwndbg command: pagewalk Source: pwndbg/commands/paging.py Category: Kernel

Shows the full page table walk: PGD → P4D → PUD → PMD → PTE, with the physical frame number and page flags at each level.

Args: session_id: The UUID of the session. address: Virtual address to walk.

See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/paging/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
addressYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It describes the operation as walking page tables, which implies a read-only operation, but does not explicitly state it is safe or non-destructive. It does not mention permissions, session state, or potential failures (e.g., if the virtual address is not mapped).

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?

The description is extremely concise: a one-line purpose, a one-line summary of output, and a two-line arg list. No wasted words. The link provides additional resource. Front-loaded with the main purpose.

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

Completeness3/5

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

Given that there is an output schema (not shown), the description does not need to detail return format, but it does give a high-level overview of what is shown. However, it omits information about error conditions, when the tool is unavailable, or what happens if the address is invalid. It also does not explain why session_id is required.

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?

The description includes an 'Args' section that explains both parameters: session_id as the session UUID and address as the virtual address. This adds meaning beyond the input schema, which only provides titles. The schema coverage metric is 0% but the description covers both parameters well.

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

Purpose4/5

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

The description clearly states it walks page tables for a virtual address and lists the hierarchy (PGD to PTE). It also mentions showing physical frame numbers and flags, which clarifies the output. However, it does not differentiate from sibling tools like pwndbg_vmmap or pwndbg_kbase, which also inspect memory or kernel structures.

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

Usage Guidelines2/5

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

The description explains what the tool does but does not specify when to use it over alternatives. There is no guidance on prerequisites, such as needing a kernel debugging session or that the address must be valid. No explicit when-not-to-use conditions.

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/Micro-Evaluation-Group/pwndbg-lldb-mcp'

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