v1.6.1

Conditional Registration

Last updated


Tools that stay out of a run until their prerequisite is set up.
These are excluded from a run while their prerequisite is missing; the LLM does not see them then. A headless /v1/send run in auto mode (as agen -p sends) also excludes background_command and background_subagents, and leaves out ask_user and store_secret, which otherwise always register.
ToolConcurrentDescription
generate_audioSpeaks text with the configured text-to-speech model and writes the file. A blank output_file auto-names audio-<timestamp> in the output directory (output_dir, else ~/Downloads, else ~/.config/agenvoy/download/); an absolute path is used as-is, and since v1.3.16 a relative path joins under the working directory (before, any directory part was dropped and the file always landed in the output directory); the extension always follows the returned format. Returns the saved path, model and byte count, not the audio data. Since v1.0.13 the request asks the provider for opus and the extension follows the returned MIME type (.ogg for opus/ogg, .mp3, .aac, .flac, .wav as a fallback) — a .ogg / .oga / .opus result attached to a Telegram chat is delivered as a voice note rather than a document. voice picks a provider voice (alloy for OpenAI, Kore for Gemini), blank uses the provider default. Runs under the 15-minute default timeout since v1.3.17 (5 min before). (excluded while no text-to-speech model is selected — set it with /model tts or POST /v1/model {tts})
generate_imageText to image, written to disk; also handles edits when reference names an absolute png / jpg / webp path. aspect_ratio, size (1k / 2k / 4k) and quality (low / medium / high, ignored by Gemini) default to 1:1, 1k and medium, filled in by the tool since v1.3.16 rather than left to the provider. A blank output_file auto-names image-<timestamp> in the output directory, an absolute path is used as-is and a relative one joins under the working directory; since v1.3.16 the extension is always replaced by the returned format (before, it was added only when missing). Returns the saved path, model, byte count and any revised prompt, not the image data. Runs under the 15-minute default timeout (its own 15-minute cap was dropped in v1.3.17). (excluded while the image generator is off — set it with /model or POST /v1/model {image}. Since v1.0.13 the setting names an image model as provider@model, probed from each credentialed provider with an image-only filter and cached for 15 minutes since v1.0.18; codex remains a bare provider name, and a bare provider name saved by an earlier version still resolves)
list_chatbot✓List authorized chats for the specified platform (platform=telegram or platform=discord). (registered at daemon start only when telegram_enabled / discord_enabled is set and the bot token is in the keychain, and excluded from a run while neither platform qualifies)
send_to_chatbot✓Send a formatted message to an authorized chat by target_id. Telegram: HTML + transient client. Discord: markdown + transient client. Platform formatting rules live in the channel system prompts, not in a tool
background_commandStarts one command in the background and returns a task id at once; its output is reported when it exits, and also whenever a new output line hits an error keyword while the command keeps running; legs started in the same turn form one group with objective and next (v1.3.8). Runs file watchers and jobs likely over 5 minutes; details on the Execution Tools page. (excluded unless the request comes from the TUI — cli- origin with no deliver target; since v1.3.2 no longer tied to a decision model)
background_subagents✓Starts a subagent leg in the background and returns a task id at once; its saved report path is reported when it finishes, delivered like background_command's. Details on the Coordination Tools page. (excluded unless the request comes from the TUI — cli- origin with no deliver target)