Tool Call update_workitem

Writes field values into the current case - the same way a person would fill out a form.

See Tool Calls for the general concept.

Arguments

Argument Required Description
values yes Field name → {"value": "...", "type": "string" \| "double" \| "date"}. Dates as YYYY-MM-DD, numbers as plain decimals

Example:

{
  "values": {
    "payment.iban": { "value": "DE98500109000022175010", "type": "string" },
    "payment.amount": { "value": "46.77", "type": "double" },
    "payment.duedate": { "value": "2026-06-27", "type": "date" }
  }
}

What happens

  • The values are written into the current case.
  • Fields starting with $ are reserved and ignored. The agent can never overwrite workflow control data.
  • The agent does not know your field names. List every field in your prompt, with its type and its meaning.

Prompt example

STEP 6 - Write the result
Call the tool "update_workitem" with these fields, even if no match was found:
 - "order.recall" (string) - "yes" or "no"
 - "order.recall.confidence" (string) - "HIGH", "MEDIUM" or "LOW"
 - "order.recall.reason" (string) - the reason in at most three sentences

Tips

  • Say which values are allowed (“yes” or “no”) so the result can be used in BPMN conditions.
  • For amounts, tell the agent to use plain decimals without currency symbols or thousand separators.
  • Don't use update_workitem for figures that must be exact. Let aggregate_workitems write them with targetField.
  • Don't use it to store a link to another case. Use link_workitem or rag_select.