Skip to main content
Glama

Incruster texte et sous-titres

montage_texte

Embeds text hooks and SRT or segment subtitles into TikTok safe zones with automatic line wrapping and centering, preventing overlap with UI elements.

Instructions

Incruste des textes (accroche en haut par défaut) et des sous-titres (fichier SRT ou segments) dans la zone sûre TikTok du cas zone (par défaut « description » : x 86–907, y 403–1382 px sur 1080×1920, avatars à gauche évités ; voir montage_infos pour les autres cas). Coupure des lignes automatique, centrage sur l'axe de la zone. Prévient si un texte reste moins de 0.25 s par mot (2.5 s au moins). Rend aussi une planche de contrôle (-controle.jpg : une image par texte, zones tracées) quand un Chrome/Chromium est trouvé : regarde-la. Tout format de vidéo (9:16, 16:9, 4:3, 1:1… : mettre d'abord la vidéo au format voulu) : les px sont ceux d'un repère de 1080 de large (1080×1920 en 9:16, 1080×608 en 16:9), donc une taille se lit pareil sur le téléphone. Polices fournies d'office : TikTok Sans, Archivo, Lora, Caveat (libres, OFL ; polices variables : libass n'en rend que la graisse par défaut, gras l'épaissit). Les lignes vides (\n\n) sont gardées. Les emoji en couleur ne sont pas rendus (libass).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fichier": "<fichier>"
    },
    "name": "montage_texte"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomNoNom de sortie (sans extension), rangé dans montages/.
fondNocontour par défaut ; boite = pavé façon TikTok
grasNooui par défaut
zoneNoZone sûre : description, sans_description, pub (défaut « description » ; détail dans carrousel_modeles ou montage_infos).
fonduNooui par défaut
policeNoUne police fournie (TikTok Sans, Archivo, Lora, Caveat), une police installée, ou une de dossierPolices (Arial par défaut).
textesNoAccroches et textes posés.
couleurNo#RRGGBB (blanc)
fichierYesVidéo, déjà au format voulu (montage_format_tiktok).
qualiteNonormale par défaut.
controleNoPlanche de contrôle (oui par défaut).
sousTitresNoOu des segments (s).
couleurFondNo#RRGGBB(AA) (noir)
tailleTexteNopx (72)
sousTitresSrtNo.srt
dossierPolicesNoDossier de .ttf/.otf/.woff2 en plus, lu comme un média (dossier de travail, ou ce que l'utilisateur a permis en lecture).
tailleSousTitresNopx (58)
positionSousTitresNobas par défaut

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.3.0
    • changedInput schema / properties / dossierPolices / description
      Previous value: -"Dossier de .ttf/.otf en plus."New value: +"Dossier de .ttf/.otf/.woff2 en plus, lu comme un média (dossier de travail, ou ce que l'utilisateur a permis en lecture)."
    • changedInput schema / properties / fichier / description
      Previous value: -"Vidéo (de préférence déjà en 1080×1920)."New value: +"Vidéo, déjà au format voulu (montage_format_tiktok)."
    • changedInput schema / properties / police / description
      Previous value: -"Police installée (Arial par défaut)."New value: +"Une police fournie (TikTok Sans, Archivo, Lora, Caveat), une police installée, ou une de dossierPolices (Arial par défaut)."
    • changedInput schema / properties / textes / items / properties / texte / description
      Previous value: -"\\n = retour à la ligne"New value: +"\\n = retour à la ligne, \\n\\n = ligne vide"
    • changedInput schema / properties / textes / items / properties / y / description
      Previous value: -"y du haut du texte, px sur 1920"New value: +"y du haut du texte, px du repère (sur 1920 en 9:16)"
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: it discloses automatic line wrapping and centering, a warning when text runs faster than 0.25 s per word (2.5 s floor), that empty lines (\n\n) are preserved, that colour emoji are not rendered by libass, and that variable fonts only render their default weight. It also discloses a side effect — a control sheet "<sortie>-controle.jpg" written when Chrome is found, with the instruction to review it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and default zone are front-loaded, then behavioural facts follow in compact clauses. It is dense and occasionally run-on (the parenthetical coordinate block and the format digression), but nearly every clause conveys operational information rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter mutation-style tool with no annotations and no output schema, the description covers defaults, prerequisites, rendering limits, and the control-sheet artifact. Remaining gaps are the SRT-vs-segments precedence and the `nom`/overwrite behaviour, which matter given the parameter count.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds meaning the schema does not, notably what `zone` "description" actually implies (x 86–907, y 403–1382 px, avatars avoided), that px are on a 1080-wide reference frame so a size reads the same in 16:9, and how `gras` interacts with the bundled variable fonts. It does not clarify how `sousTitresSrt` and `sousTitres` interact or which wins.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and two resources ("Incruste des textes ... et des sous-titres") plus the placement scope ("zone sûre TikTok du cas `zone`"). It also names the sibling tools that own adjacent concerns (montage_infos, montage_format_tiktok), so an agent can tell this overlay tool apart from format-conversion or info tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite — "mettre d'abord la vidéo au format voulu" — and routes the agent to montage_infos for other zone cases. It never states when *not* to use it or how it relates to montage_assembler/diaporama, so it is clear context without full exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.