Agent SDK
Watch agents think
Live simulations of Claude agents autonomously searching, purchasing, and executing marketplace workflows via marktools.
>_
Your Agent
Claude / GPT-4o
tool_use
mk
marktools
pip install marktools
HTTPS
{ }
Mark API
Search + Commerce
Choose a simulation
>_
Select a simulation above to watch an agent work
Build your own agent
Everything above runs on marktools. Here's the full agent loop:
agent.py
from marktools import MarkTools
from anthropic import Anthropic
mark = MarkTools(api_key="mk_...")
client = Anthropic()
messages = [{"role": "user", "content": "Help me file my Ohio taxes"}]
while True:
response = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=4096,
tools=mark.to_anthropic(),
messages=messages,
)
if response.stop_reason != "tool_use":
print(response.content[0].text)
break
tool_results = []
for block in response.content:
if block.type == "tool_use":
result = mark.execute(block.name, block.input)
tool_results.append({
"type": "tool_result",
"tool_use_id": block.id,
"content": result,
})
messages.append({"role": "assistant", "content": response.content})
messages.append({"role": "user", "content": tool_results})