> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tinyfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# The Goal Parameter

> Natural language instructions that tell TinyFish Web Agent what to do

A goal is the `goal` parameter you pass to the API: a plain English description of what you want TinyFish Web Agent to accomplish. Instead of writing code to click buttons or parse HTML, you describe the task and TinyFish Web Agent figures out how to do it.

## The Mental Model

Think of TinyFish Web Agent as a capable assistant sitting in front of a browser. It can see what's on the screen, click, type, scroll, and navigate, but it needs clear instructions.

**What it can do:**

* See exactly what you would see on the screen
* Click, type, scroll, and navigate
* Wait for dynamic content to load
* Follow instructions precisely
* Return structured data
* Navigate multi-page PDFs and extract content
* Remember information across workflow steps
* Parse natural language into form fields

**What it cannot do:**

* Read your mind about what you meant
* Guess what to do when something unexpected happens
* Know your business context unless you tell it
* Decide on output format without explicit instructions

Your job is to remove ambiguity. The more explicit your goal, the higher your success rate.

***

## Quick Examples

**Data extraction:**

```
Extract product name, price, and stock status. Return as JSON.
```

**Form filling:**

```
Fill the contact form with name "John Doe" and email "john@example.com", then click Submit.
```

**Multi-step workflow:**

```
1. Login with email "user@example.com" and password "pass123"
2. Navigate to the dashboard
3. Extract account balance
```

***

## Learn More

Learn how to write goals that succeed on the first try with our Goal Prompting Guide.

<Card title="Goal Prompting Guide" icon="bullseye" href="/prompting-guide">
  The anatomy of a great goal, task-specific patterns, and production-ready examples.
</Card>

***

## Related

<CardGroup cols={2}>
  <Card title="Runs" icon="play" href="/key-concepts/runs">
    What happens after you send a goal
  </Card>

  <Card title="Endpoints" icon="plug" href="/key-concepts/endpoints">
    Choose how to call the API
  </Card>
</CardGroup>
