submit
Fetch any web form, automatically extract hidden fields and CSRF tokens, then submit with user-provided data via POST.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"fields": "<fields>"
},
"name": "submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| fields | Yes | ||
| cookies | No | ||
| 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. | |
| csrf_selector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The submitted URL | |
| status | Yes | HTTP status code | |
| content | Yes | Markdown-converted response body |