Upload attachment
servicenow_upload_attachmentUpload files as attachments to ServiceNow table records using a local path or inline base64 data for JSON-only MCP callers.
Instructions
Upload a file as an attachment on a table record.
Accepts either a server-local file_path (back-compat) or inline
base64-encoded data (via AttachmentModel) — the latter is written to
a temp file server-side for the upload and cleaned up afterward, so JSON-only
MCP tool callers can upload without a filesystem path.
:param file_path: Path to a file on disk to upload. Mutually exclusive with
data; takes precedence if both are given.
:type file_path: str or None
:raises MissingParameterError: If table_name, table_sys_id, or file_name is missing, or if neither file_path nor data is provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | ||
| params_json | No | {} |