> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pwno.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Inspection

> Read current debugger context and inspect memory without changing execution.

These tools read debugger state without changing the inferior's execution.

## `get_context`

`get_context` returns either a broad quick snapshot or one focused view.

Supported `context_type` values:

* `all`
* `regs`
* `stack`
* `disasm`
* `code`
* `backtrace`

```json theme={null}
{"tool":"get_context","arguments":{"context_type":"all","session_id":"chal-a"}}
{"tool":"get_context","arguments":{"context_type":"backtrace","session_id":"chal-a"}}
```

## `get_memory`

`get_memory` accepts a start address expression, byte count, and output format.

<CodeGroup>
  ```json Hex bytes theme={null}
  {"tool":"get_memory","arguments":{"address":"$rsp","size":64,"format":"hex","session_id":"chal-a"}}
  ```

  ```json String view theme={null}
  {"tool":"get_memory","arguments":{"address":"$rdi","size":64,"format":"string","session_id":"chal-a"}}
  ```
</CodeGroup>

## Address and format notes

* use expressions like `$rsp`, `$rip`, or `0xdeadbeef`
* use `format: "hex"` for raw bytes
* use `format: "string"` for `x/s`-style string output
* use a named session so repeated reads stay attached to the same debugger state
