Write and execute Python code to process data, analyze scraped content, or perform computations
Use this skill to generate and execute Python code for data processing, analysis, or computation tasks.
Most often the code result should produce an image of a plot or a textual output that answers the user's question. Those artifacts should be saved in scratch/
scratch/ directoriesThe web skill saves content to the scratch directory:
scratch/query_*.jsonl - Search results (one JSON object per line)scratch/url_*.jsonl - Scraped web page content with URL, title, and markdown contentscratch/USER_QUERY.txt - Original user questiongenerate_code to generate Python code, save it, and execute it in one stepscratch/code/ and executedgrep_file(filepath: str, pattern: str, case_sensitive: bool, max_results: int) - Search for pattern in a file with regexgenerate_code(task_description: str, context: str) - Generate Python code with Qwen, save it, execute it, and return results (all in one step)Note: read_file, write_code, and run_code are disabled. Use grep_file to search files,
or generate_code which handles everything automatically.
scratch/ to read data files