Files
LocalAI/addons/office/manifest.json
T
Ettore Di Giacinto 7df9b263ed feat(addons): carry translated text in the manifest and the library
The manifest said its text in English only. An add-on can now translate
what the host shows to people, and the library list shows it before the
add-on is installed.

The title and the description use the language maps of ui.title and
ui.description, which every host already reads. A new optional field,
i18n, translates the connector kinds by language tag. It stays under api
2 and its set of fields is closed: the title and the description of a
declared kind, and only where the English kind has them. Tool
descriptions, schemas and skills are for the model and stay English.
Tags follow the language map rule (at most 16, no English), each string
has the limit of its English field, all translated text has at most
12 000 characters, and markup, control characters and direction
overrides are refused. A host that does not know the field refuses the
manifest, as it refuses any unknown field. The field is part of the
manifest, so the package digest and the signature cover it.

The catalog generator copies the translated title and description of
the manifest into each library entry (ui.titles, ui.descriptions), the
host validates them like the manifest values, and a library search
matches the English and the translated text. The apps list and the
connector kinds return the text of every language and, when the request
names a language (lang, else Accept-Language), the resolved text beside
the English fields: language, localizedTitle and localizedDescription.
No existing field changes.

Every add-on on master now has its title and description in Italian,
German, Spanish, French, Brazilian Portuguese, Simplified Chinese,
Korean and Indonesian, and the chat connectors carry their kind text in
the same languages. The packaging tests require that, and that a
translation has the fields of the English text it translates. The names
of the add-ons that provide a role are matched in their English title
only: a translation is often an ordinary word of its language.

Assisted-by: Claude:claude-sonnet-5-5 go
2026-11-04 17:46:53 +00:00

571 lines
18 KiB
JSON

{
"api": {
"max": 2,
"min": 2
},
"arch": "amd64",
"capabilities": {
"hostOperations": {
"required": [
"workspace.export",
"workspace.import"
]
},
"actions": true,
"skillDefinitions": [
{
"name": "xlsx",
"shadows": "xlsx",
"slot": {
"extensions": [
".xlsx"
],
"kind": "documents",
"library": "openpyxl",
"words": [
"xlsx",
"excel"
]
}
},
{
"name": "docx",
"shadows": "docx",
"slot": {
"extensions": [
".docx"
],
"kind": "documents",
"library": "python-docx",
"words": [
"docx",
"word"
]
}
},
{
"name": "pptx",
"shadows": "pptx",
"slot": {
"extensions": [
".pptx"
],
"kind": "documents",
"library": "python-pptx",
"words": [
"pptx",
"powerpoint"
]
}
},
{
"name": "pdf",
"shadows": "pdf",
"slot": {
"extensions": [
".pdf"
],
"kind": "documents",
"library": "pypdf",
"words": [
"pdf"
]
}
}
],
"toolDefinitions": [
{
"name": "read-docx",
"description": "Read a Word file (.docx): its paragraphs with their index, and its tables. Use the index with edit-docx.",
"kind": "read",
"inputSchema": {
"additionalProperties": false,
"properties": {
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.docx.",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}
},
{
"name": "read-xlsx",
"description": "Read an Excel file (.xlsx): the sheet names and the cell values of each sheet, row by row. Give sheet to read one sheet.",
"kind": "read",
"inputSchema": {
"additionalProperties": false,
"properties": {
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.xlsx.",
"type": "string"
},
"sheet": {
"description": "The name of one sheet. Default: all sheets.",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}
},
{
"name": "read-pptx",
"description": "Read a PowerPoint file (.pptx): each slide with its title and its text shapes (id, kind, paragraphs). Use the shape id with edit-pptx.",
"kind": "read",
"inputSchema": {
"additionalProperties": false,
"properties": {
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.pptx.",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}
},
{
"name": "read-pdf",
"description": "Read the text of a PDF file (.pdf), page by page. A scanned page without text gives no text.",
"kind": "read",
"inputSchema": {
"additionalProperties": false,
"properties": {
"firstPage": {
"description": "First page, from 1. Default 1.",
"type": "integer"
},
"lastPage": {
"description": "Last page. Default: the end, up to 50 pages.",
"type": "integer"
},
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.pdf.",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}
},
{
"name": "edit-docx",
"description": "Change a Word file in place. Edits run in order and all or none are saved. Read the file first to get paragraph indexes. If someone changed the file meanwhile, your version is saved as a second file.",
"kind": "action",
"inputSchema": {
"additionalProperties": false,
"properties": {
"edits": {
"description": "The changes, at most 200.",
"items": {
"additionalProperties": false,
"properties": {
"after": {
"description": "insert: insert after this paragraph index; -1 for the start.",
"type": "integer"
},
"find": {
"description": "replace: the text to look for, everywhere.",
"type": "string"
},
"index": {
"description": "set and delete: the paragraph index.",
"type": "integer"
},
"op": {
"description": "What to do.",
"enum": [
"set",
"insert",
"delete",
"replace"
],
"type": "string"
},
"style": {
"description": "insert: a paragraph style the document defines. Optional.",
"type": "string"
},
"text": {
"description": "set and insert: the new text. replace: the text to put in.",
"type": "string"
}
},
"required": [
"op"
],
"type": "object"
},
"maxItems": 200,
"type": "array"
},
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.docx.",
"type": "string"
}
},
"required": [
"path",
"edits"
],
"type": "object"
}
},
{
"name": "edit-xlsx",
"description": "Change an Excel file in place. Give sheet and cells; each cell has a ref such as B3 and exactly one of text, number, formula (such as =SUM(B2:B9)) or clear. addSheet adds an empty sheet first.",
"kind": "action",
"inputSchema": {
"additionalProperties": false,
"properties": {
"addSheet": {
"description": "The name of a sheet to add before the cells are set. Optional.",
"type": "string"
},
"cells": {
"description": "The cells to change, at most 200.",
"items": {
"additionalProperties": false,
"properties": {
"clear": {
"description": "Empty the cell.",
"type": "boolean"
},
"formula": {
"description": "Set the cell to this formula.",
"type": "string"
},
"number": {
"description": "Set the cell to this number.",
"type": "number"
},
"ref": {
"description": "The cell, such as B3.",
"type": "string"
},
"text": {
"description": "Set the cell to this text.",
"type": "string"
}
},
"required": [
"ref"
],
"type": "object"
},
"maxItems": 200,
"type": "array"
},
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.xlsx.",
"type": "string"
},
"sheet": {
"description": "The sheet the cells belong to.",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}
},
{
"name": "edit-pptx",
"description": "Change a PowerPoint file in place. Ops: title (slide, text), text (slide, shape id, paragraph, text), add (text is the title, bullets, optional layout), delete (slide). Read the file first for ids.",
"kind": "action",
"inputSchema": {
"additionalProperties": false,
"properties": {
"edits": {
"description": "The changes, at most 200.",
"items": {
"additionalProperties": false,
"properties": {
"bullets": {
"description": "add: the bullet lines.",
"items": {
"type": "string"
},
"maxItems": 30,
"type": "array"
},
"layout": {
"description": "add: the layout name. Default Title and Content.",
"type": "string"
},
"op": {
"description": "What to do.",
"enum": [
"title",
"text",
"add",
"delete"
],
"type": "string"
},
"paragraph": {
"description": "text: the paragraph number in the shape, from 0.",
"type": "integer"
},
"shape": {
"description": "text: the shape id from read-pptx.",
"type": "integer"
},
"slide": {
"description": "The slide, from 1.",
"type": "integer"
},
"text": {
"description": "The new text, or for add the new slide's title.",
"type": "string"
}
},
"required": [
"op"
],
"type": "object"
},
"maxItems": 200,
"type": "array"
},
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.pptx.",
"type": "string"
}
},
"required": [
"path",
"edits"
],
"type": "object"
}
},
{
"name": "create-docx",
"description": "Create a Word document from Markdown. Supports headings, paragraphs, lists, bold, italic and simple tables. If the path is taken, the old file stays and the new one is saved next to it.",
"kind": "action",
"inputSchema": {
"additionalProperties": false,
"properties": {
"markdown": {
"description": "The markdown content.",
"type": "string"
},
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.docx.",
"type": "string"
},
"title": {
"description": "Optional title metadata; does not add a heading.",
"type": "string"
}
},
"required": [
"path",
"markdown"
],
"type": "object"
}
},
{
"name": "create-xlsx",
"description": "Create one Excel sheet from comma-separated CSV. Every nonempty value is text, never a formula or number. Sheet defaults to Sheet1. If the path is taken, the old file stays and the new one is saved next to it.",
"kind": "action",
"inputSchema": {
"additionalProperties": false,
"properties": {
"csv": {
"description": "The csv content.",
"type": "string"
},
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.xlsx.",
"type": "string"
},
"sheet": {
"description": "The sheet name. Optional; defaults to Sheet1.",
"type": "string"
},
"title": {
"description": "Optional title metadata; does not add a heading.",
"type": "string"
}
},
"required": [
"path",
"csv"
],
"type": "object"
}
},
{
"name": "create-pptx",
"description": "Create a PowerPoint file from slides, each with a title and bullet lines. A slide without bullets is a title slide. If the path is taken, the old file stays and the new one is saved next to it.",
"kind": "action",
"inputSchema": {
"additionalProperties": false,
"properties": {
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.pptx.",
"type": "string"
},
"slides": {
"description": "The slides, in order.",
"items": {
"additionalProperties": false,
"properties": {
"bullets": {
"description": "The bullet lines.",
"items": {
"type": "string"
},
"maxItems": 30,
"type": "array"
},
"title": {
"description": "The slide title.",
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
},
"maxItems": 200,
"type": "array"
},
"title": {
"description": "The deck title. Optional.",
"type": "string"
}
},
"required": [
"path",
"slides"
],
"type": "object"
}
},
{
"name": "create-pdf",
"description": "Create a PDF from Markdown headings, paragraphs, lists, bold, italic and simple tables. Text must use Latin-1 characters only. If the path is taken, the old file stays and the new one is saved next to it.",
"kind": "action",
"inputSchema": {
"additionalProperties": false,
"properties": {
"markdown": {
"description": "The markdown content.",
"type": "string"
},
"path": {
"description": "The file, as a path inside the user's files, such as /reports/plan.pdf.",
"type": "string"
},
"title": {
"description": "Optional title metadata; does not add a heading.",
"type": "string"
}
},
"required": [
"path",
"markdown"
],
"type": "object"
}
}
],
"tools": [
"read-docx",
"read-xlsx",
"read-pptx",
"read-pdf",
"edit-docx",
"edit-xlsx",
"edit-pptx",
"create-docx",
"create-xlsx",
"create-pptx",
"create-pdf"
],
"ui": {
"css": [
"ui/office.css"
],
"description": {
"en": "Lightweight basic Word, Excel, PowerPoint and PDF file work from your chats, without requiring Sandbox.",
"it": "Lavoro leggero e di base su file Word, Excel, PowerPoint e PDF dalle tue chat, senza richiedere Sandbox.",
"de": "Einfache Arbeit mit Word-, Excel-, PowerPoint- und PDF-Dateien direkt aus Ihren Chats, ohne dass Sandbox nötig ist.",
"es": "Trabajo ligero y básico con archivos de Word, Excel, PowerPoint y PDF desde tus chats, sin necesidad de Sandbox.",
"fr": "Travail léger et de base sur des fichiers Word, Excel, PowerPoint et PDF depuis vos conversations, sans avoir besoin de Sandbox.",
"pt-BR": "Trabalho leve e básico com arquivos Word, Excel, PowerPoint e PDF a partir dos seus chats, sem precisar do Sandbox.",
"zh-CN": "在聊天中轻量地处理基础的 Word、Excel、PowerPoint 和 PDF 文件,无需 Sandbox。",
"ko": "Sandbox 없이도 채팅에서 Word, Excel, PowerPoint, PDF 파일의 기본 작업을 가볍게 처리합니다.",
"id": "Pekerjaan ringan dan dasar dengan berkas Word, Excel, PowerPoint, dan PDF dari obrolan Anda, tanpa memerlukan Sandbox."
},
"entry": "ui/office.js",
"icon": "ui/icon.png",
"mainPage": "office",
"pages": [
"office"
],
"sdk": {
"max": 2,
"min": 2
},
"slots": [
{
"component": "OfficePreview",
"extensions": [
"docx",
"xlsx",
"pptx"
],
"id": "preview",
"slot": "files.preview"
}
],
"title": {
"en": "Simple Office",
"it": "Office semplice",
"de": "Einfaches Office",
"es": "Office sencillo",
"fr": "Office simple",
"pt-BR": "Office simples",
"zh-CN": "简易 Office",
"ko": "간단한 Office",
"id": "Office Sederhana"
}
}
},
"dataFormat": {
"max": 1,
"min": 1
},
"executable": "office",
"host": {
"max": 1,
"min": 1
},
"id": "office",
"os": "linux",
"protocol": {
"max": 1,
"min": 1
},
"schemaVersion": 1,
"version": "0.1.0"
}