Metadata-Version: 2.5
Name: crewai-capturekit
Version: 0.1.0
Summary: CrewAI tools for CaptureKit: read web pages as clean Markdown and get an AI profile of a website.
Project-URL: Homepage, https://www.capturekit.dev
Project-URL: Documentation, https://github.com/capturekitdev/crewai-capturekit#readme
Project-URL: Repository, https://github.com/capturekitdev/crewai-capturekit
Project-URL: Issues, https://github.com/capturekitdev/crewai-capturekit/issues
Author-email: CaptureKit <contact@capturekit.dev>
License-Expression: MIT
License-File: LICENSE
Keywords: agents,capturekit,content-extraction,crewai,markdown,tools,web-scraping,website-analysis
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Typing :: Typed
Requires-Python: <3.14,>=3.10
Requires-Dist: crewai>=0.150
Requires-Dist: httpx<1,>=0.27
Provides-Extra: test
Requires-Dist: pytest>=8.3; extra == 'test'
Requires-Dist: ruff<1,>=0.8; extra == 'test'
Description-Content-Type: text/markdown

# crewai-capturekit

[CrewAI](https://www.crewai.com) tools for [CaptureKit](https://www.capturekit.dev): read web pages as clean Markdown and get an AI profile of a website.

## Installation

```bash
pip install crewai-capturekit
export CAPTUREKIT_API_KEY="your-api-key"
```

Get an API key at [app.capturekit.dev](https://app.capturekit.dev).

## Tools

| Tool | What it does |
| --- | --- |
| `CaptureKitPageContentTool` | Load a web page in a real browser through CaptureKit and return it as Markdown. |
| `CaptureKitAnalyzePageTool` | Get an AI profile of a web page through CaptureKit. |

Each tool takes `api_key` (defaults to `CAPTUREKIT_API_KEY`), `base_url` and `timeout`, plus the settings shown in its docstring. Errors (invalid key, no credits, rate limit, timeout) come back to the agent as text, without the API key.

```python
from crewai import Agent
from crewai_capturekit import CaptureKitPageContentTool, CaptureKitAnalyzePageTool

agent = Agent(
    role="Analyst",
    goal="Answer with data from CaptureKit",
    backstory="You use CaptureKit to read web pages as clean Markdown and get an AI profile of a website.",
    tools=[CaptureKitPageContentTool(), CaptureKitAnalyzePageTool()],
)

print(CaptureKitPageContentTool().run(**{"url": "https://example.com"}))
```

## Development

```bash
pip install -e ".[test]"
pytest
```

## License

MIT
