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

# DevTools

> Capture PHP Agent SDK runs in the local Phaseo DevTools event format.

Enable DevTools capture while building tool timelines, approval interfaces, and run inspectors.

```php theme={null}
$result = $agent->run(
    input: $prompt,
    client: $client,
    devtools: AgentSdk::createAgentDevtools(".phaseo-devtools")
);
```

Each run and continuation writes a structured JSONL record containing status, usage, model attempts, tool calls, pauses, request metadata, and errors.

Local capture is a development aid, not a production audit store. Apply application-specific redaction, access control, encryption, and retention before persisting sensitive content.
