submit
Submit web forms automatically: fetch a page, parse forms, extract CSRF tokens and hidden fields, merge your data, and POST. Use for login, search, or API interactions.
Instructions
Submit a web form with smart field extraction.
Fetches a page, parses all forms, extracts hidden fields and CSRF tokens, merges user-provided fields, and submits via POST.
Use for: login forms, search forms, API interactions behind HTML pages.
Returns: Response body (markdown-converted) after form submission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookies | No | ||
| csrf_selector | No | ||
| fields | Yes | ||
| session | No | Named session for cookie persistence. When set, the form page fetch and the POST submission both use the session's cookie jar, preserving authentication state. See `fetch` `session` for full documentation. | |
| url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Markdown-converted response body | |
| status | Yes | HTTP status code | |
| url | Yes | The submitted URL |