push_artifact
Write edited artifact fields back to ServiceNow records, using expected_updated_on to abort on conflicts and optionally loading field values from local sync files.
Instructions
Local sync: write edited fields back to an artifact (requires WRITE_ENABLED=true). Pass fields inline as {field:value}; if omitted and NOWAIKIT_SYNC_DIR is set, reads them from the pulled files on disk. Overwrites the listed fields with NO merge — run sync_status first, and pass expected_updated_on to abort if the instance changed since you pulled.
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": {
"table": "<table>",
"sys_id": "<sys_id>"
},
"name": "push_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Artifact table | |
| fields | No | Optional map of {field: newValue} to update; defaults to the on-disk files under NOWAIKIT_SYNC_DIR | |
| sys_id | Yes | sys_id OR name of the record | |
| expected_updated_on | No | Optional sys_updated_on from your last pull/sync_status; the push aborts with a CONFLICT if the record has changed since. |