ai_parser_update
Update an existing AI parser by adding, modifying, renaming, or removing fields. Changes to field definitions trigger asynchronous regeneration; renames and removals apply immediately.
Instructions
Edit an AI parser's fields, creating a new version.
Add, modify, rename, or remove fields. Adding or modifying fields triggers
asynchronous regeneration (poll 'ai_parser_get_details' until 'FINISHED'); renaming
or removing fields is applied immediately.
When to use:
- Adjusting an existing parser's fields (add/modify/rename/remove) rather
than recreating it
When NOT to use:
- Creating a brand-new parser (use 'ai_parser_create')
Args:
params (AiParserUpdateParams): parser_id (required) and optional version,
plus any of add_fields, modify_fields, rename_fields, remove_fields.
Returns:
str: JSON with the parser id and (new) version.
Raises:
ToolError: If the API key is missing, the rate limit is exceeded, the
inputs are invalid, or the request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |