accueil / serveurs / Dev & Code / io.github.nivethaug/dreamagent
io.github.nivethaug/dreamagent
serveur MCP (Model Context Protocol) · DreamAgent 3.4.7
Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur.
Est-ce que io.github.nivethaug/dreamagent est sûr ?
Au dernier audit MCP Hub, le serveur MCP « io.github.nivethaug/dreamagent » est classé « Non encore testé ». Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur. Le verdict est réévalué en continu ; consultez la fiche pour l'état à jour.
Méthode : MCP Hub analyse la description de chaque outil (couche 1) et, pour le verdict fort, exécute le serveur dans une micro-VM isolée avec leurres et réseau bloqué (couche 2). On publie des noms et des compteurs, jamais le contenu brut renvoyé par un outil.
Les 24 outils
- dreamagent_build_publish≈ 254 tokens
WRITE ACTION — build & publish a DreamAgent project: rebuilds the app from the current source files and pushes the new version live. Use after finishing file edits (dreamagent_write_file) so the user's changes go live. Pro/paid accounts only. CONFIRM BEFORE CALLING — tell the user the project will be rebuilt and redeployed, and call only with confirm=true after they agree. ASYNCHRONOUS: kick-off returns immediately; check dreamagent_get_project_status until the project reports 'ready'.
Paramètres, retour & exemple (2)
Paramètresconfirm· boolean · optionnelproject_id· integer · requis
Exemple d'appel{"name": "dreamagent_build_publish", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_cancel_chat≈ 252 tokens
DESTRUCTIVE — stops an AI edit that is currently running. Use ONLY when the user explicitly asks to stop/cancel the active edit. After cancellation, do NOT claim the requested change was completed — report that it was stopped. Returns 'Cancellation requested: <backend message>' — e.g. 'Query cancelled', 'Cancellation requested' (durable run), or 'No active query found'. Afterwards poll dreamagent_get_chat_status / dreamagent_get_edit_progress until run_status reports 'cancelled'.
Paramètres, retour & exemple (1)
Paramètressession_key· string · requis
the session key of the running edit.
Exemple d'appel{"name": "dreamagent_cancel_chat", "arguments": {"session_key": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_chat≈ 716 tokens
WRITE ACTION — builds, modifies, or fixes an EXISTING project with a natural-language instruction. Use ONLY when the user clearly asks for a change ("add X", "fix Y", "change the theme"). If the user is only asking for advice, analysis, review, or suggestions ("what could be improved?", "review my bot"), do NOT call this — answer from the project's info instead; a review request is not an edit. Describe ONLY the desired change — DreamAgent's AI automatically handles code, tests, rebuild, and redeployment. Completed changes are saved and committed automatically. ASYNCHRONOUS: returns immediately with the session_key; monitor with dreamagent_get_edit_progress (or dreamagent_get_chat_status with the returned session key) until a terminal state. Report success only after run_status reaches 'completed'. Edits consume the user's AI credits. ERRORS (actual returns): failures come back as text starting with 'ERROR:'. If the edit was rejected before starting, the text says 'the edit was NOT started' plus the reason — HTTP 402 insufficient credits, 409 another edit already active, 423 session lock held by another session, 404 wrong project id, 401 no account connected. Treat the edit as failed/cancelled only when a status tool says so. ONE EDIT AT A TIME: never start another modification on the same project while one is running — check progress first and wait. SUPERPOWERS: projects can use the account's enabled AI tools (song/video/image generation, voiceover, lip sync, voice clone, transcription, media processing, PDF tools). If the user asks to add or use one ("add song generation", "generate an image feature"), simply include that in the message — DreamAgent's agent knows the enabled tools and wires the integration, UI and job handling automatically. Check the catalog with dreamagent_list_superpowers; if a tool is disabled, direct the user to dreamagent.cloud -> Superpowers to enable it first.
Paramètres, retour & exemple (4)
Paramètresmessage· string · requis
the desired change (what + any behavioral constraints).project_id· integer · requis
the project to modify.new_session· boolean · optionnel
optional — start a fresh session for a new topic.session_key· ? · optionnel
optional — continue a specific development session.
Exemple d'appel{"name": "dreamagent_chat", "arguments": {"message": "texte", "project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_commit_push≈ 358 tokens
WRITE ACTION — commit ALL pending changes in a DreamAgent project and push them to its private GitHub repo. The commit gets its own entry in the project's session history and version history, so the user can restore/revert to it in the DreamAgent dashboard. Use it to (a) commit several MCP writes/deletes as ONE version — write and delete with auto_commit=false first — or (b) retry a commit after a failure. Chat-driven edits commit automatically; this tool is for direct file changes made through MCP. CONFIRM BEFORE CALLING — show the user what is pending (one dreamagent_get_file_diff per touched file) and call only with confirm=true after they agree.
Paramètres, retour & exemple (3)
Paramètresconfirm· boolean · optionnel
must be true to executemessage· string · optionnel
short commit message, e.g. "Add pricing page hero section" (default "MCP edit: project <id>")project_id· integer · requis
project to commit
Exemple d'appel{"name": "dreamagent_commit_push", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_create_project≈ 1508 tokens
WRITE ACTION — creates a new DreamAgent project (website, Telegram bot, Discord bot, or AI agent). Use ONLY when the user clearly asks to create/build a new project; not for questions about what to build. CONFIRM BEFORE CALLING — never create on the first mention. In ONE message, present and get the user's explicit go-ahead for: 1. The credential: run dreamagent_list_global_integrations first. If several telegram/discord credentials are saved, list them (id + title) and ask which to use. If exactly one is saved, state which one you will use. Never pick silently. 2. The plan: name, type, and the final description exactly as you will submit it (this is the Prompt Assistant's recommendation summary). Call this tool only after the user confirms. NOTE: this tool's schema includes a `confirm` parameter. If YOUR client rejects a `confirm` field as "not allowed by the schema", your cached tool list is STALE (the parameter exists server-side) — tell the user to remove and re-add the DreamAgent connector, then start a new chat. CREATION IS ASYNCHRONOUS: after calling, check dreamagent_get_project_status repeatedly until the project is 'ready' or 'failed' (bots ~2-5 min, websites longer). CREDENTIALS: raw bot tokens are never accepted in chat or as inputs. For Telegram/Discord bots you MUST pass bot_token_integration_id — the ID of a saved credential from dreamagent_list_global_integrations. If none is saved, direct the user to dreamagent.cloud → Settings → Global Integrations. Other saved keys can be imported via global_integration_ids. Credentials are stored as project secrets and are never exposed back. DESCRIPTION = the refined creation brief. Act as a Creative Director / Product Manager, not an architect. Create a concise but complete description of WHAT should be built: - product vision and target audience - user experience and core functionality - design/tone direction - important features and behavior - final expected result Do not include implementation details such as: - technology stack - architecture - database/API implementation - authentication implementation - deployment - CI/CD - testing commands Infer reasonable defaults when missing details are non-critical. Ask for clarification only when missing information materially affects the requested functionality, scope, credentials, or expected result. Prefer the following structure and constraints for each project type, but do not override explicit user requirements: Website: - Project Vision - Design Style - Pages - Hero Experience - Core Features - UI Components - Mobile Experience - Final Expectation - Prefer up to 4 pages unless the user clearly requires more. Telegram bot: - Bot Purpose - Commands - User Flow - Optional AI Features - Integrations when required - Final Expectations - Prefer a compact command set; always include /start and /help unless the user's explicit requirements conflict. Discord bot: - Bot Purpose - Slash Commands - Events - Permissions - Optional AI Features - Final Expectations - Prefer a compact command set; include /help where appropriate. Agent (recurring/scheduled automation with OAuth actions): - Purpose (what it monitors or automates) - Data Sources (which connected OAuth services: YouTube, GitHub, Discord, Notion, X, Google Sheets, Slack — or public APIs) - Schedule (e.g., every 5 minutes / hourly / daily at 9am) and/or Event Triggers (incoming webhook) - Conditions (when to act — thresholds, keywords, state changes) - Delivery Channels (Telegram, Discord, Slack, email — optional) - Final Expectation - Use concrete schedules; note that agents keep persistent state between runs and can call any connected OAuth integration. - Agents do NOT need a bot token unless they deliver via Telegram/ Discord (then a saved credential is required as for bots). SUPERPOWERS: the account may have ready-made AI tools enabled (song/video/image generation, voiceover, lip sync, voice clone, transcription, media processing, PDF tools). If the requested product clearly benefits from one (e.g. an AI song generator website), reflect the FEATURE in the description — DreamAgent wires the tool integration automatically at build time. Check what is enabled with dreamagent_list_superpowers. Do NOT add implementation details about how the tool is called.
Paramètres, retour & exemple (7)
Paramètresname· string · requis
project name (max 30 chars; a public subdomain is auto-generated).confirm· boolean · optionnel
must be true to execute — OR simply call the tool a SECOND time with the exact same arguments within 5 minutes (repeat-call confirmation). Either path confirms.env_vars· ? · optionnel
optional non-secret environment variables.description· ? · optionnel
the build request (what + for whom + features/tone).project_type· string · requis
website / telegrambot / discordbot / agent.global_integration_ids· ? · optionnel
optional saved-key IDs to import as env vars.bot_token_integration_id· ? · optionnel
REQUIRED for telegrambot & discordbot — saved-credential ID (see dreamagent_list_global_integrations).
Exemple d'appel{"name": "dreamagent_create_project", "arguments": {"name": "texte", "project_type": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_create_session≈ 213 tokens
Create a new development session for a project — a separate conversation with its own context. Use when the user wants to start a distinct development topic. A new session does NOT replace or affect the existing project — earlier sessions remain available.
Paramètres, retour & exemple (2)
Paramètreslabel· string · optionnel
optional name for the session.project_id· integer · requis
the project.
Exemple d'appel{"name": "dreamagent_create_session", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_delete_file≈ 259 tokens
WRITE ACTION — delete one source file from a DreamAgent project. Hidden/credential files (.env, .git, keys) are rejected. By default the deletion is immediately committed and pushed (so it is recorded in session history & version history) — deleted files stay recoverable via git history / version restore. CONFIRM BEFORE CALLING — tell the user which file will be deleted and call only with confirm=true after they agree.
Paramètres, retour & exemple (4)
Paramètresconfirm· boolean · optionnelfile_path· string · requisproject_id· integer · requisauto_commit· boolean · optionnel
Exemple d'appel{"name": "dreamagent_delete_file", "arguments": {"file_path": "texte", "project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_design_mode≈ 421 tokens
WRITE ACTION — redesign a website project's UI to match a design image. Website projects only. The user provides an image (screenshot, mockup, AI-generated design) and instructions. You generate the image (e.g. DALL-E), encode it as base64, and send it here. DreamAgent's AI will read the image and redesign the project's frontend to match. CONFIRM BEFORE CALLING — show the user: 1. The project being redesigned 2. The design instructions Then call only with confirm=true after they agree.
Paramètres, retour & exemple (4)
Paramètresconfirm· boolean · optionnel
must be true to execute.project_id· integer · requis
the website project to redesign.image_base64· string · requis
base64-encoded design reference image (PNG/JPG/WEBP). Send the actual image bytes verbatim — the image IS the spec.instructions· string · requis
keep this SHORT — e.g. "Match this design image exactly." The image carries the design; do NOT write a long textual design spec duplicating what is visible in the image. Only add brief must-have requirements the image cannot show (e.g. "keep all existing pages and functionality", "Product Hunt view only").
Exemple d'appel{"name": "dreamagent_design_mode", "arguments": {"project_id": 1, "image_base64": "texte", "instructions": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_edit_file≈ 502 tokens
WRITE ACTION — make SMALL targeted changes to an EXISTING file in a DreamAgent project via exact search/replace. PREFERRED over dreamagent_write_file for editing existing files: you send only the changed fragments (never the whole file) — cheaper, immune to payload size/safety blocks in the calling client, and cannot corrupt unchanged code. Use dreamagent_write_file only to CREATE files or for full rewrites. Read the file first (dreamagent_read_file) and copy each 'find' text EXACTLY as it appears — whitespace and indentation must match. All edits are validated BEFORE anything is saved; if any 'find' fails to match, the file is left untouched and the error tells you which edit and why. CONFIRM BEFORE CALLING — show the user the target file and each planned find→replace change, then call only with confirm=true.
Paramètres, retour & exemple (5)
Paramètresedits· array · requis
list of edit objects: {"find": "<exact existing text>", "replace": "<new text>", "all": false} # optional: replace every occurrenceconfirm· boolean · optionnel
must be true to execute.file_path· string · requis
project-relative path of the EXISTING file to edit.project_id· integer · requis
project containing the file.auto_commit· boolean · optionnel
commit+push and record version history after saving (default true; pass false to batch several edit_file calls and finish with one dreamagent_commit_push).
Exemple d'appel{"name": "dreamagent_edit_file", "arguments": {"edits": [], "file_path": "texte", "project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_get_chat_status≈ 398 tokens
Check the progress and final status of a specific AI development session using its session key. Use this to monitor an asynchronous edit until it completes, fails, or is cancelled — keep checking until a terminal state. The session key comes from dreamagent_chat or dreamagent_list_sessions and is an identifier, not a secret. Returns (actual fields): 'active=', 'run_status=', 'next_after=' (cursor for the next check), optional 'new_output:' (text produced since the last check), then either "Still working — poll again" or a terminal 'done=true' line: finished (with the final output tail), 'the edit was NOT started: <reason>' (rejected early, e.g. HTTP 402 insufficient credits), or 'stream error' (the connection to the run broke — the server-side run may still have finished; verify with dreamagent_get_edit_progress). run_status values: queued | running | cancel_requested | completed | failed | cancelled | interrupted | unknown.
Paramètres, retour & exemple (2)
Paramètresafter· integer · optionnel
cursor from the previous check (0 on the first check).session_key· string · requis
the session key returned by dreamagent_chat.
Exemple d'appel{"name": "dreamagent_get_chat_status", "arguments": {"session_key": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_get_edit_progress≈ 421 tokens
Check the latest AI edit progress for a project using its project identifier — no session key needed: the project id retrieves the session holding the latest edit. Use when the user asks whether their edit is finished, when the session key isn't available (e.g. a new conversation), and BEFORE starting any new edit. Returns (actual fields): 'session_key=' (the identifier of the session this progress comes from), 'edit_active=', 'run_status=', 'chunks=' (output size so far), optional 'recent_output (tail):', and a terminal 'result:' line: finished (with the final output tail), 'the edit was NOT started: <reason>' (rejected early, e.g. HTTP 402 insufficient credits), 'stream error', or 'no run is currently active'. run_status values: queued | running | cancel_requested | completed | failed | cancelled | interrupted | unknown. Distinct from dreamagent_get_project_status: project status = creation/deployment state (creating/ready/failed); edit progress = current AI modification state; chat status (dreamagent_get_chat_status) monitors one specific session by its session key. If edit_active is true, do NOT launch another edit for the same project.
Paramètres, retour & exemple (1)
Paramètresproject_id· integer · requis
the project being edited.
Exemple d'appel{"name": "dreamagent_get_edit_progress", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_get_file_diff≈ 174 tokens
Git diff of one project file against the last commit — shows the pending (not yet live) changes. Free, read-only. Use after edits to review exactly what changed before rebuilding.
Paramètres, retour & exemple (2)
Paramètresfile_path· string · requisproject_id· integer · requis
Exemple d'appel{"name": "dreamagent_get_file_diff", "arguments": {"file_path": "texte", "project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_get_project_status≈ 261 tokens
Check a project's creation/deployment state. Terminal states are 'ready' (built and live) and 'failed'; while a project is being created it reports progressive phases such as 'creating', 'building', 'deploying', or 'ai_provisioning' — treat any non-terminal status as still building. Use after dreamagent_create_project (poll until ready or failed) and whenever the user asks whether a project is ready or live. NOTE: this reports the PROJECT's build/deploy state — NOT AI edit progress. For edits use dreamagent_get_edit_progress.
Paramètres, retour & exemple (1)
Paramètresproject_id· integer · requis
the project to check.
Exemple d'appel{"name": "dreamagent_get_project_status", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_list_commits≈ 205 tokens
Version history of a DreamAgent project — recent commits (hash, message, status, timestamp) from its persistent commit log, newest first. Use it to review what changed and when; the user can restore any version from the DreamAgent dashboard version-history UI (mention the short hash so they can find it).
Paramètres, retour & exemple (2)
Paramètreslimit· integer · optionnelproject_id· integer · requis
Exemple d'appel{"name": "dreamagent_list_commits", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_list_files≈ 155 tokens
List the file tree of a DreamAgent project (source files only — hidden files like .env are excluded). Use before reading or editing a file to find the correct path.
Paramètres, retour & exemple (1)
Paramètresproject_id· integer · requis
Exemple d'appel{"name": "dreamagent_list_files", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_list_global_integrations≈ 248 tokens
List the user's saved credentials (Global Integrations). ALWAYS call this before creating any bot project or asking the user for a token/API key. Saved credentials are referenced BY ID when creating projects: bot_token_integration_id for bot tokens, global_integration_ids for other keys. Secret values are never returned — only IDs and metadata (type, key name, verified, title). If nothing suitable is saved: direct the user to dreamagent.cloud → Settings → Global Integrations to add it (one-time, verified, reusable). Never ask the user to paste tokens in chat.
Paramètres, retour & exemple (0)
Exemple d'appel{"name": "dreamagent_list_global_integrations", "arguments": {}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_list_project_env≈ 250 tokens
List a project's environment variables with their details. Shows each key's name, title, description, docs URL, and category — values are masked (secrets are never returned). Use to see which integrations a project already has before adding more, or to answer "what keys does my project have?". These are PROJECT-SPECIFIC variables — distinct from the user's Global Integrations — API-key credentials and connected OAuth services (dreamagent_list_global_integrations).
Paramètres, retour & exemple (1)
Paramètresproject_id· integer · requis
the project to inspect.
Exemple d'appel{"name": "dreamagent_list_project_env", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_list_projects≈ 252 tokens
List the user's DreamAgent projects. Returns each project's name, ID, type, status, and live domain (when available). Use when the user asks to see, find, select, or check their projects — and ALWAYS before modifying a project when its ID is not already known (resolve names to IDs here first).
Paramètres, retour & exemple (1)
Paramètresstatus· ? · optionnel
optional exact-match filter (e.g. 'ready', 'failed'). During creation, projects report intermediate phases (creating/building/deploying/…), so filtering by 'creating' does not match every in-progress project.
Exemple d'appel{"name": "dreamagent_list_projects", "arguments": {"status": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_list_sessions≈ 230 tokens
List a project's development sessions (conversation threads). Returns each session's identifier (session key) and context so you can select, continue, or monitor a specific development session — pass the session key to dreamagent_chat to continue that thread or to dreamagent_get_chat_status to monitor it. The session key is a reference used to address a session; it is not an authentication credential or a secret.
Paramètres, retour & exemple (1)
Paramètresproject_id· integer · requis
the project.
Exemple d'appel{"name": "dreamagent_list_sessions", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_list_superpowers≈ 229 tokens
List DreamAgent Superpowers — the account's ready-made AI tools (song/video/image generation, voiceover, lip sync, voice clone, transcription, media processing, PDF tools) with their enabled state and beta pricing. Read-only; no credits consumed. Use when the user asks what AI tools/superpowers are available, whether a specific tool is enabled, or what they can add to a project. Tools shown as enabled can be used from ANY of the user's projects through dreamagent_chat (just ask in the message).
Paramètres, retour & exemple (0)
Exemple d'appel{"name": "dreamagent_list_superpowers", "arguments": {}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_read_file≈ 180 tokens
Read a source file from a DreamAgent project. file_path is the project-relative path (from dreamagent_list_files), e.g. "src/pages/Home.tsx" or "telegram/main.py". Hidden files (.env) and binaries are not readable.
Paramètres, retour & exemple (2)
Paramètresfile_path· string · requisproject_id· integer · requis
Exemple d'appel{"name": "dreamagent_read_file", "arguments": {"file_path": "texte", "project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_release_project_lock≈ 248 tokens
RECOVERY-ONLY — releases a project's editing lock when a stale or abandoned session blocks new modifications. NOT a normal editing step, and NEVER a way to bypass an actively running edit. The lock state is not machine-readable from here: to judge staleness, check dreamagent_get_edit_progress — if no edit is active but dreamagent_chat still fails with a lock error, the lock is stale. Confirm with the user before releasing if they may have the project open elsewhere.
Paramètres, retour & exemple (1)
Paramètresproject_id· integer · requis
the project to unlock.
Exemple d'appel{"name": "dreamagent_release_project_lock", "arguments": {"project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - dreamagent_screenshot_website≈ 284 tokens
WEBSITE PROJECTS ONLY — capture a screenshot of a DreamAgent-hosted page by URL: a deployed project's domain (e.g. my-app.dreamagent.cloud or a connected custom domain) or dreamagent.cloud itself. Best for checking a project's live pages after edits or deploys and reviewing layouts — returns the PNG as an MCP image content block PLUS a public URL. Non-DreamAgent URLs are rejected (this is enforced both here and by the host firewall). No project id needed — just the URL. Only public http(s) pages; private/internal hosts are rejected.
Paramètres, retour & exemple (3)
Paramètresurl· string · requis
absolute http(s) URL of the page to capturewidth· integer · optionnel
viewport width 320-1920 (default 1280)height· integer · optionnel
viewport height 240-2160 (default 800)
Exemple d'appel{"name": "dreamagent_screenshot_website", "arguments": {"url": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}]} - dreamagent_write_file≈ 474 tokens
WRITE ACTION — overwrite or create one source file in a DreamAgent project with the exact content given. For CHANGING an existing file, prefer dreamagent_edit_file (small targeted find→replace edits — no need to send the whole file). By default the write is immediately committed and pushed to the project's GitHub repo and recorded in its session history & version history (so the user can restore/revert). Changes go live after the project is rebuilt (dreamagent_build_publish). CONFIRM BEFORE CALLING — in ONE message show the user: the target path and a summary of the change, then call only after they agree. Never write on the first mention. MULTI-FILE EDITS: pass auto_commit=false on each write, then call dreamagent_commit_push once at the end — one commit and one history entry for the whole batch. GUARDS (enforced server-side, the same as the in-app code editor): path stays inside the project, hidden/credential files (.env, .git, keys) are rejected, content is scanned for malware/shell signatures and blocked, 2MB size cap. Failed scans return the reason. The user can undo damage by editing in the DreamAgent editor or restoring a previous version from version history — still, prefer precise minimal diffs.
Paramètres, retour & exemple (5)
Paramètresconfirm· boolean · optionnelcontent· string · requisfile_path· string · requisproject_id· integer · requisauto_commit· boolean · optionnel
Exemple d'appel{"name": "dreamagent_write_file", "arguments": {"content": "texte", "file_path": "texte", "project_id": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}}
C'est votre serveur ?
Revendiquez-le sur l'espace créateur (preuve GitHub, domaine ou npm) pour afficher le badge « propriétaire vérifié » et lancer un pentest comportemental à la demande afin d'obtenir le badge « Vérifié ».