Exploring the ADK Developer Web UI: Local Inspection, Chat, and Graph Visualizer
Start adk web, chat with your agent, inspect sessions, state, and events, and use the agent structure graph view — with ports, flags, storage defaults, and telemetry.
Published on • November 24, 2026
AI Assistant

ADK ships a built-in web interface for testing agents in the browser: adk web boots a local server with a chat pane, session management, state inspection, and full event history. It is the fastest loop for prompt iteration — edit agent.py, watch it hot-reload, and read exactly what the agent saw on each turn. The docs are blunt about scope: ADK Web is for development and debugging only, not production deployments.
This tutorial covers starting the UI, the flags worth knowing, and how its inspection panels (including the agent structure graph view) fit into a debugging workflow.
Starting the interface
pip install google-adk
adk web --port 8000
Run it from the parent directory that contains your agent folder — if your agent lives in agents/my_agent/, launch from agents/. The server prints an access banner:
+-----------------------------------------------------------------------------+
| ADK Web Server started |
| For local testing, access at http://localhost:8000. |
+-----------------------------------------------------------------------------+
TypeScript and other stacks differ slightly: npx adk web for TypeScript, and in Go there is no standalone CLI — you embed full.NewLauncher() in main.go and pass subcommands, e.g. go run agent.go web api webui (the web keyword starts the HTTP server, api the REST backend, webui the browser UI). Java bundles the web interface and API server and runs com.google.adk.web.AdkWebServer.
Options worth knowing
adk web --help lists everything; these are the ones that matter day to day:
| Option | Description | Default |
|---|---|---|
--port | Port for the server | 8000 |
--host | Host binding address | 127.0.0.1 |
--session_service_uri | Custom session storage URI | Per-agent SQLite at <agents_dir>/<agent>/.adk/session.db |
--artifact_service_uri | Custom artifact storage URI | Per-agent directory at <agents_dir>/<agent>/.adk/artifacts |
--reload/--no-reload | Auto-reload on code changes | true |
Pass --no_use_local_storage to fall back to in-memory session and artifact services instead of the local .adk folder. A typical variant:
adk web --port 3000 --session_service_uri "sqlite:///sessions.db"
Because sessions persist to SQLite by default, the UI shows your previous conversations after a restart — handy for regression testing, surprising if you expected a clean slate.
What you can inspect
The key features listed in the docs:
- Chat interface — send messages and view responses in real time.
- Session management — create and switch between sessions.
- State inspection — view and modify
session.stateduring development, which is exactly where the{key}placeholders fromdynamic-system-instructions-state-injection.mdresolve. - Event history — inspect every event generated during execution, including tool calls and state deltas; the same event stream that
context-compaction-in-google-adk.mddescribes trimming over long conversations. - Visual Builder — a drag-and-drop workflow editor with an AI-powered assistant (Python only, experimental since ADK Python v1.18.0) that generates Agent Config YAML like
root_agent.yamlplustools/*.py.
The agent structure graph view
Beyond per-event inspection, the UI exposes an agent structure graph view — a visualization of how your agents, sub-agents, and tools connect — alongside the execution trace panel. It is part of what the Web UI’s telemetry settings describe as feature usage (builder mode, agent chat, execution trace and event log viewers, evaluation set creation, and clicking the agent structure graph view), which confirms these panels are first-class navigation targets in the interface.
The graph is especially useful after refactoring a hierarchy: if you moved a sub-agent under a new router, the rendered structure shows what the model will actually be able to transfer_to_agent to.
A practical debugging loop
The panels are designed to be used together. A repeatable local workflow:
1. adk web --port 8000 # hot reload on by default (--reload)
2. Select the agent in the upper-left corner of the UI
3. Send a message; read the streamed response in the chat pane
4. Open Event history -> check the tool calls and state deltas for that turn
5. Open State inspection -> confirm keys like user:account_tier exist
(missing keys are exactly what makes {key} injection throw)
6. Open the agent structure graph view -> confirm routing edges match your code
7. Edit agent.py, save, and repeat — no restart needed
Because --session_service_uri defaults to per-agent SQLite at <agents_dir>/<agent>/.adk/session.db, step 5 shows real persisted state, not an ephemeral dict. To reproduce a bug from scratch, either create a new session in the UI or pass --no_use_local_storage for in-memory state.
Visual Builder safety boundaries
The Visual Builder half of the UI writes files, so its security model is worth knowing. It saves Agent Config YAML through local API endpoints that are registered only when the web UI is served (for example adk web); in headless or API-only deployments such as the default adk deploy cloud_run, those endpoints are not registered, which prevents unauthorized file writes. Uploads accept only .yaml and .yml files, and the server rejects absolute paths, .. path-traversal sequences, and YAML containing blocked keys such as args that could execute arbitrary code.
Generated projects land in a subfolder of wherever you launched adk web:
DiceAgent/
root_agent.yaml # main agent (Agent Config format)
sub_agent_1.yaml # sub agents (if any)
tools/
__init__.py
dice_tool.py # custom tool code
You can hand-edit those files, though the docs caution that some changes may not round-trip back into Visual Builder.
Telemetry and the agents-cli playground
The Web UI collects anonymous usage telemetry that is off by default until you enable it from User Settings (user icon, top right). The preference lives locally at ~/.adk/config.json:
{
"telemetry": false
}
When enabled it captures page views, ADK version, runtime language, and feature interactions — never prompt contents, system instructions, LLM responses, API keys, OAuth tokens, project IDs, or PII.
If your project came from agents-cli, you get the same ADK web interface through agents-cli playground, which serves it with hot reload at http://127.0.0.1:8080/... by default and is the documented way to talk to a scaffolded agent during development.
Takeaway: adk web (or agents-cli playground) gives you a local, hot-reloading chat console backed by per-agent SQLite sessions — use its state inspector and event history to verify {key} injection and tool calls, the agent structure graph view to validate hierarchy changes, and remember it is a development tool: keep it bound to 127.0.0.1, leave telemetry off unless you want it, and never expose it as a production endpoint.