Skip to content

inFakt MCP server tool · Costs and expenses

infakt_cost_file_rename

Last updated: · Rename Cost File

Renames the file of a scan or of a cost’s only attachment after preview and confirmation.

Write with a confirmation tokendestructiveHintidempotentHint

What it does

The server’s own text, in Polish, written for the assistant. Names of other tools link to their pages.

Zmienia nazwę pliku jednego dokumentu kosztowego.

When to use

użytkownik chce czytelnie nazwać skan albo plik dołączony do kosztu.

What it returns

zmienia tylko nazwę pliku skanu (kind=document_scan) albo jedynego załącznika kosztu lub dowodu wewnętrznego; inFakt dopisuje rozszerzenie pierwotnego pliku.

How to use

uuid z infakt_get_costs_list, file_name 1–251 znaków, bez ukośnika ani lewego ukośnika. Pierwsze wywołanie zwraca podgląd i confirmation_token; potem to samo wywołanie z tokenem.

Examples

infakt_meta_examples("rename_cost_file")

Related tools (per the server)

Parameters

Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.

ParameterTypeRequiredDescription
confirmation_tokenstringnoPrzy pierwszym wywołaniu pozostaw to pole puste, aby otrzymać preview operacji i podpisany token potwierdzenia. Po akceptacji użytkownika wywołaj narzędzie ponownie z identycznym payloadem oraz zwróconym confirmation_token.
file_namestring (min 1, max 251)yesNowa nazwa pliku (1–251 znaków, bez / i \); inFakt dopisze rozszerzenie pierwotnego pliku
uuidUUIDyesUUID dokumentu kosztowego (z infakt_get_costs_list)

Access kind and annotations

Write with a confirmation token: the first call returns a preview and a token, the second call with that token performs the operation

  • readOnlyHint: false write: changes data or state
  • destructiveHint: true destructive: may overwrite or delete data, or cannot be undone
  • idempotentHint: true idempotent: repeating it with the same arguments yields the same state
  • openWorldHint: false works only within the inFakt account

OAuth scopes the tool requires:

  • api:costs:write

Related tools