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.
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)
- infakt_get_costs_list - znajdź dokument (uuid)
- infakt_get_cost - bieżąca nazwa: number skanu, załączniki z fields=attachments
Parameters
Fields of the params object. Types and field descriptions come from the schema the server publishes in tools/list.
| Parameter | Type | Required | Description |
|---|---|---|---|
confirmation_token | string | no | Przy 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_name | string (min 1, max 251) | yes | Nowa nazwa pliku (1–251 znaków, bez / i \); inFakt dopisze rozszerzenie pierwotnego pliku |
uuid | UUID | yes | UUID 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: falsewrite: changes data or statedestructiveHint: truedestructive: may overwrite or delete data, or cannot be undoneidempotentHint: trueidempotent: repeating it with the same arguments yields the same stateopenWorldHint: falseworks only within the inFakt account
OAuth scopes the tool requires:
api:costs:write
Related tools
- infakt_get_costs_list – Lists costs with date, kind and status filters.
- infakt_meta_examples – Example calls for an operation.
- infakt_get_cost – One cost document with its lines.