Служебные инструменты · fileman
Файлы и структура сайта · чтение · Чтение · fileman_ui_preferences_get
fileman_site_fileman_m087_readЧтениеДействия модуля fileman.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Действия модуля fileman.
profile- строка · обязательный параметр
context- объект · обязательный параметр
{
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"modern_editor",
"light_editor",
"legacy_tooltips",
"legacy_visual_effects",
"legacy_render_components",
"legacy_toolbars",
"legacy_taskbars",
"legacy_taskbarsets",
"browser_search",
"browser_copy",
"browser_history",
"sticker_color",
"sticker_page_size",
"sticker_filter",
"medialib_window",
"mail_template_editor_mode"
]
},
"context": {
"type": "object",
"properties": {
"editor_id": {
"type": "string",
"maxLength": 64
},
"bbcode": {
"type": "boolean"
},
"initial_view": {
"type": "string",
"enum": [
"default",
"wysiwyg",
"code",
"split"
]
},
"controls": {
"type": "array",
"items": {
"type": "string",
"enum": [
"bbcode",
"changeview"
]
},
"maxItems": 2
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"profile",
"context"
],
"additionalProperties": false
}Действия модуля fileman.
profile- строка · обязательный параметр
context- объект · обязательный параметр
preferences- объект · обязательный параметр
{
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"modern_editor",
"light_editor",
"legacy_tooltips",
"legacy_visual_effects",
"legacy_render_components",
"legacy_toolbars",
"legacy_taskbars",
"legacy_taskbarsets",
"browser_search",
"browser_copy",
"browser_history",
"sticker_color",
"sticker_page_size",
"sticker_filter",
"medialib_window",
"mail_template_editor_mode"
]
},
"context": {
"type": "object",
"properties": {
"editor_id": {
"type": "string",
"maxLength": 64
},
"bbcode": {
"type": "boolean"
},
"initial_view": {
"type": "string",
"enum": [
"default",
"wysiwyg",
"code",
"split"
]
},
"controls": {
"type": "array",
"items": {
"type": "string",
"enum": [
"bbcode",
"changeview"
]
},
"maxItems": 2
}
},
"required": [],
"additionalProperties": false
},
"preferences": {
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"wysiwyg",
"code",
"split"
]
},
"split_vertical": {
"type": "boolean"
},
"taskbar_shown": {
"type": "boolean"
},
"taskbar_width": {
"type": "integer",
"minimum": 20,
"maximum": 2000
},
"clean_empty_spans": {
"type": "boolean"
},
"paste_clear_colors": {
"type": "boolean"
},
"paste_clear_borders": {
"type": "boolean"
},
"paste_clear_decor": {
"type": "boolean"
},
"paste_clear_table_dimen": {
"type": "boolean"
},
"show_snippets": {
"type": "boolean"
},
"link_dialog_type": {
"type": "string",
"enum": [
"internal",
"external",
"anchor",
"email"
]
},
"split_ratio": {
"type": "number",
"minimum": 0.05,
"maximum": 20
},
"specialchars": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40
},
"maxItems": 20
},
"width": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"height": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"description": "Light editor accepts 100 to 2000. Media Library accepts a positive int32."
},
"collection_id": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"enabled": {
"type": "boolean"
},
"toolbars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 64
},
"show": {
"type": "boolean"
},
"docked": {
"type": "boolean"
},
"position": {
"type": "array",
"items": {
"type": "integer",
"minimum": -10000,
"maximum": 10000
},
"maxItems": 3
}
},
"required": [
"name",
"show",
"docked",
"position"
],
"additionalProperties": false
},
"maxItems": 32
},
"taskbars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 64
},
"show": {
"type": "boolean"
},
"set": {
"type": "integer",
"enum": [
2,
3
]
},
"active": {
"type": "boolean"
}
},
"required": [
"name",
"show",
"set",
"active"
],
"additionalProperties": false
},
"maxItems": 32
},
"taskbarsets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"set": {
"type": "integer",
"enum": [
2,
3
]
},
"show": {
"type": "boolean"
},
"size": {
"type": "integer",
"minimum": 100,
"maximum": 2000
}
},
"required": [
"set",
"show",
"size"
],
"additionalProperties": false
},
"maxItems": 2
},
"advMode": {
"type": "boolean"
},
"bSubdir": {
"type": "boolean"
},
"entire": {
"type": "boolean"
},
"bCaseSens": {
"type": "boolean"
},
"bDirsToo": {
"type": "boolean"
},
"caseOption": {
"type": "string",
"enum": [
"ask",
"replace",
"auto_rename",
"skip"
]
},
"paths": {
"type": "array",
"items": {
"type": "string",
"maxLength": 1000
},
"maxItems": 10
},
"color": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"page_size": {
"type": "integer",
"minimum": 5,
"maximum": 30
},
"type": {
"type": "string",
"enum": [
"my",
"all",
"text",
"html",
"editor"
],
"description": "Sticker filter uses my or all. Mail-template editor stores text, html or editor."
},
"colors": {
"anyOf": [
{
"type": "string",
"enum": [
"all"
]
},
{
"type": "array",
"items": {
"type": "integer",
"enum": [
0,
1,
2,
3,
4,
5,
99
]
},
"maxItems": 7
}
]
},
"status": {
"type": "string",
"enum": [
"all",
"opened",
"closed"
]
},
"page": {
"type": "string",
"maxLength": 1000
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"profile",
"context",
"preferences"
],
"additionalProperties": false
}