target

target is a command for Claude Code from yurilopes/pydoll-mcp-server. It costs 0 tokens per session (930 once invoked), scanned A, original, MIT.

A set of browser commands for managing tabs, windows, pop-ups, and other browser contexts. It can list targets, open new tabs, close targets, and activate them.

In plain words
What is it for?
Use it to inspect open browser targets, create a tab at a chosen web address, close a tab or window, or bring a target to the front.
Why use it?
It avoids handling browser tabs and windows manually when an automated browser needs to control them.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to inspect open browser targets, create a tab at a…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yurilopes/pydoll-mcp-server/target
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yurilopes/pydoll-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for target

README.md
[![agentmods](https://agentmods.dev/badge/commands/yurilopes/pydoll-mcp-server/target.svg)](https://agentmods.dev/commands/yurilopes/pydoll-mcp-server/target)
Your own site
<a href="https://agentmods.dev/commands/yurilopes/pydoll-mcp-server/target"><img src="https://agentmods.dev/badge/commands/yurilopes/pydoll-mcp-server/target.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00930
Opus 5 $0.00000 $0.00465
Sonnet 5 $0.00000 $0.00186
Haiku 4.5 $0.00000 $0.00093

Measured 6d ago against content hash 313735541843, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

target scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

references/pydoll-docs/en/api/commands/target.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Target Commands

Target commands manage browser targets including tabs, windows, and other browsing contexts.

Overview

The target commands module provides functionality for creating, managing, and controlling browser targets such as tabs, popup windows, and service workers.

::: pydoll.commands.target_commands options: show_root_heading: true show_source: false heading_level: 2 filters: - "!^_" - "!^__"

Usage

Target commands are used internally by browser classes to manage tabs and windows:

from pydoll.commands.target_commands import get_targets, create_target, close_target
from pydoll.connection.connection_handler import ConnectionHandler

# Get all browser targets
connection = ConnectionHandler()
targets = await get_targets(connection)

# Create a new tab
new_target = await create_target(connection, url="https://example.com")

# Close a target
await close_target(connection, target_id=new_target.target_id)

Key Functionality

The target commands module provides functions for:

Target Management

  • get_targets() - List all browser targets
  • create_target() - Create new tabs or windows
  • close_target() - Close specific targets
  • activate_target() - Bring target to foreground

Target Information

  • get_target_info() - Get detailed target information
  • Target types: page, background_page, service_worker, browser
  • Target states: attached, detached, crashed

Session Management

  • attach_to_target() - Attach to target for control
  • detach_from_target() - Detach from target
  • send_message_to_target() - Send commands to targets

Browser Context

  • create_browser_context() - Create isolated browser context
  • dispose_browser_context() - Remove browser context
  • get_browser_contexts() - List browser contexts

Target Types

Different types of targets can be managed:

Page Targets

# Create a new tab
page_target = await create_target(
    connection,
    url="https://example.com",
    width=1920,
    height=1080,
    browser_context_id=None  # Default context
)

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 147 lines · 0 tokens per session scan A 313735541843

Subscribe to this mod's changes

target is a command published in the GitHub repository yurilopes/pydoll-mcp-server (1 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 930 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.