> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/contents/f3d059da.md).

# Chrome CDP: AI ile Tarayıcı Kontrolü

{% embed url="<https://youtu.be/XivFxpj3WEY>" %}

{% embed url="<https://youtu.be/yZofxP9B-sI>" %}

"Valla umarım patlatmazsınız Chrome'umu." Sağ alttaki agent kod yazıyor, yukarıdaki ve soldaki testleri koşuyor. Hepsi benim Chrome'uma bağlı. Aynı tarayıcı. Aynı sekmelerde geziniyor, popup açıyor, Reddit'e giriyor. İlk tepkim buydu.

Akış şu: agent Chrome'a erişiyor, JavaScript çalıştırıyor, tab açıyor/kapatıyor, sayfalar arası geziniyor. `chrome-cdp eval "document.title"` yazıyor, sayfa başlığı geliyor. `chrome-cdp tabs list` yazıyor, 8 sekme listesi geliyor. Düşünmeye gerek yok, direkt aksiyon.

Multi-agent setup var. Sağdaki geliştirici Chrome tool'unu düzeltiyor. Soldaki ve yukarıdaki agentlar test ediyor - "birden fazla sekme üzerinde oyna", "popup çıkar", "Reddit'e gir, profilimi bul, yorumları çek, görselleştir" tarzı talimatlar veriyorum. Agent'lar koordine çalışıyor, user-developer loop gibi. Hata buldukça geliştirici düzeltiyor.

Pattern şu: JavaScript eval = tam kontrol. Puppeteer indirmeye gerek yok, Chrome zaten var. DevTools Protocol üzerinden bağlanıyorsun, her şeye erişiyorsun. Multi-tab yönetimi agentlar kendisi çözüyor - "insan nasıl araştırır" sorusunu soruyorlar. 7-8 sekme açıyorlar, hepsinde farklı şeyler yapıyorlar, sonucu birleştiriyorlar.

Lokal çalışıyor. Güvenlik problemi yok, kendi tarayıcına erişiyorsun. Aynı pattern VSCode için çalışır, MacOS için çalışır, Hammerspoon için çalışır. Şu an Chrome'da test ettim, yarın başka bir app bağlanır.

Kod [GitHub'da](https://github.com/yemreak/vibe-coding?tab=readme-ov-file). `chrome-cdp` CLI tool. Environment variable'lar: Chrome DevTools Protocol endpoint (genelde `localhost:9222`). Chrome'u `--remote-debugging-port=9222` flag'i ile başlatman lazım.

Sırada ne yapacağım, bilmem :D


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yemreak.com/contents/f3d059da.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
