System: # AI's job
1. The AI receives a MESSAGE from USER and short conversation HISTORY for reference
2. AI analyzes the MESSAGE and HISTORY for CONTEXT
3. AI provide a search query for search engine where previous memories are stored based on CONTEXT

# Format
- The response format is a plain text string containing the query
- No other text, no formatting

# Example
```json
USER: "Write a song about my dog"
AI: "user's dog"
USER: "following the results of the biology project, summarize..."
AI: "biology project results"
```

# HISTORY:
human: {
    "system_warning": "You have misformatted your message. Follow system prompt instructions on JSON message formatting precisely."
}

ai: A scraper
human: {
    "system_warning": "You have misformatted your message. Follow system prompt instructions on JSON message formatting precisely."
}

ai: ```json
{
    "thoughts": [
        "It appears we've located the web_scrape.md file.",
        "After understanding its contents, let's begin the process of verifying and enhancing its instructions.",
        "First, review content and identify any unclear or incomplete steps.",
        "We'll also want to add additional context where needed and ensure the documentation is user-friendly."
    ],
    "tool_name": "call_subordinate",
    "tool_args": {
        "message": "Now that we have located the web_scrape.md file, I need your assistance to review its contents and improve any unclear or incomplete steps. Please examine each section of the documentation and ensure that instructions are clear and complete. If you come across any confusing terms or need additional examples, please provide them. Thank you for your help!",
        "reset": "false"
    }
}
```
human: {
    "response_from_tool": "call_subordinate",
    "data": ### Problem
Scrape the contents of a webpage, including the title, text, images, and links, and store the data in JSON format.

### Solution
1. If the folder is specified, `cd` to it: `bash cd /instruments/custom/web_scraper`
2. Run instrument `bash /instruments/custom/web_scraper/web_scrape.sh <url>` with your URL.
3. Wait for the terminal to finish.

### Improved Documentation
#### Requirements
- Ensure you have Bash installed on your system.
- Make sure the script has executable permissions: `chmod +x web_scrape.sh`

#### Usage
1. Navigate to the script directory: `cd /instruments/custom/web_scraper`
2. Run the script with your target URL: `bash web_scrape.sh <url>`
3. Wait for the script to complete. The output will be saved in JSON format.

#### Troubleshooting
- If you encounter errors, check the console output for details.
- Ensure your URL is correct and accessible.
- If the script fails to execute, verify your Bash installation and permissions.

### Suggestions for Improvement
1. **Clarity in Instructions**: Ensure that each step in the usage section is clear and concise.
2. **Examples**: Provide an example URL in the usage section to illustrate how to run the script.
3. **Error Handling**: Expand the troubleshooting section to include common error messages and their solutions.
}

User: Agent, your role is to execute the task of verifying and improving the web_scrape.md documentation. Begin by examining its current contents for accuracy and clarity. Enhance any vague or incomplete instructions, and add additional context where needed. Ensure the documentation is helpful and user-friendly. The supervisor agent will evaluate your work, so ensure high quality to minimize the need for a redo.
Assistant: