跳到正文Skip to content
Agent J Beta
菜单Menu
中文EN
登录Sign in

搜索文档和页面Search docs and pages

文档Docs

回复里的图表与表单Charts and forms in replies

回复中直接看流程图、图表和步骤,表单与确认卡只准备草稿。Read flowcharts, charts and steps inside replies; forms and confirmation cards prepare drafts only.

请 Agent 画个流程图、把数字画成柱图、列出步骤,或给你一个填写表单。不需要学习格式。

回复保留原有链接、引用、表格和文件卡片;本机文件仍要由主机随回复授权发送。Markdown、PDF、音频、视频使用原有预览。待办仍由官方待办卡维护。

把本地图片放进回复时,写完整的 [说明](绝对路径) 本地引用,也支持在开头加感叹号的图片写法;两种写法都支持绝对路径和 ~/。主机收到完整引用后就准备文件,不必等整轮工作结束。文件卡片出现前会显示准备中,失败会给出说明;文件仍须通过路径、类型和秘密检查。

需要明确附到当前页时,让 Agent 在当前获准的主人手机回合单独运行 agentj file show PATH --label 说明 --json。没有有效主人回合会失败;桌面独立回合不能借这个命令新建外发消息。queued 只表示排队,后续 FILE_SHOW_RESULT 的 attached_to_page 表示已附到页,failure 表示失败;它们都不表示您已看到或下载文件。

PATH 支持绝对路径和 ~/,文件仍须位于本轮获准的工作目录内。失败说明:broker_unavailable 表示无法连接本机附图服务;no_owner_session 表示无法确认当前主人回合或其上下文;native_admission_missing 表示 AI 工具尚未准入这条具体请求;native_admission_expired 表示准入已失效;native_admission_ambiguous 表示匹配到多条有效准入。这些失败都没有附上文件。当前回合有效时,让 Agent 单独运行这条命令;回合已失效或无法确认时,请用已配对的遥控器在同一会话重新发消息。

表单支持文字、选择、勾选和日期;请勿填写密码、密钥或其他秘密。点「填入草稿」或确认卡里的选项,只会把内容放到输入框,已有草稿会保留。检查后再按发送。它不是权限批准;危险动作仍要用正式审批卡。已有一键回复选项仍为点一下发送。

消息还没写完时,表单和确认选项不可操作。格式写错、类型不支持或超出限制时保留原文,同一条回复的其他部分照常显示。引用里的组件保持原文。全屏阅读与回复卡使用同一套显示方式,支持回复按钮和内部链接。点回复按钮会发送并返回对话;表单仍先准备草稿,供您检查。

给 Agent 的格式说明

内置 agentj-reply-components 技能由同一份组件清单生成,包含名字、参数、限制和示例。结构化组件使用 agentj JSON 围栏:流程图、柱图/折线图、步骤条、确认卡、表单。已有 Mermaid 流程图也继续支持,使用本地渲染器。所有渲染不加载外部脚本、不执行 HTML/JS、不调用本机工具;链接沿用现有网址过滤。

执行回复中的命令

「执行」按钮会先显示完整命令。只有主机新建、未加载启动脚本的 Bash 中,字面形式的 printf、echo 和 pwd 可以直接运行。读取文件、运行外部程序、使用已有终端和其他命令,仍按原规则确认。黑色命令框本身不代表授权。

下载大附件

本人已配对的遥控器可在 24 小时内领取一次大文件下载链接。下载内容经过加密,密钥只在已配对连接中传递。领取失败或过期后需要新链接。旧版遥控器可能改用原有加密连接接收文件。

Ask your Agent to draw a flowchart, chart the numbers, show the steps or prepare a form. You do not need to learn a format.

Existing links, quotes, tables and file cards keep working. Local files still require the host to authorize and send them with the reply. Markdown, PDF, audio and video keep their existing previews; persistent to-dos stay on the official To-do card.

To include a local image, the Agent writes a complete [label](absolute-path) reference, optionally with an exclamation mark before it for an image. Both forms accept absolute paths and ~/. Once the host receives the complete reference, it prepares the file while work continues. The slot shows preparation or a failure reason until the file card is ready. Path, file-type and secret checks still apply.

For an explicit attachment to the current page, the Agent can run agentj file show PATH --label LABEL --json as a standalone Bash command in an admitted owner phone turn. Without a live owner turn it fails; a standalone desktop turn cannot use it to create an outgoing message. queued means pending. The later FILE_SHOW_RESULT reports attached_to_page or failure. Neither receipt means you have seen or downloaded the file.

PATH accepts absolute paths and ~/; it still must stay within the admitted working root. Failure reasons: broker_unavailable means the local attachment service cannot be reached; no_owner_session means the current owner turn or its context could not be confirmed; native_admission_missing means this exact request has not been admitted by the AI tool; native_admission_expired means its admission is no longer valid; native_admission_ambiguous means more than one valid admission matches. These failures do not attach a file. If the current turn is still active, run the attachment command on its own. If the turn has expired or cannot be verified, ask the owner to send a fresh message in the same session from their paired remote.

Forms accept text, choices, checkboxes and dates. Never enter passwords, API keys or other secrets. Prepare draft and confirmation-card choices only append content to the message box, preserving your existing draft. Review it and press Send. These cards do not approve tool permissions; dangerous actions still require the official approval card. Existing one-tap reply choices still send on a tap.

Actions stay disabled while the reply is being written. Unsupported, malformed or oversized blocks remain source text while the rest of the reply displays normally. Quoted components stay source text. The full-screen reader uses the same reply rendering, including reply buttons and internal links. Tap a reply button to send it and return to the conversation; forms still prepare a draft for you to review.

Output contract for the Agent

The bundled agentj-reply-components skill is generated from the same component registry and lists names, parameters, limits and examples. Structured components use an agentj JSON fence: flowchart, bar/line chart, steps, confirmation card and form. Existing Mermaid diagrams continue through the local renderer. Components load no external scripts, execute no HTML/JS and call no local tools. Links retain the existing URL filter.

Run a command from a reply

The Run button shows the exact command before execution. Only literal printf, echo and pwd commands in a fresh host-owned Bash session without startup scripts can run directly. File reads, external programs, an existing terminal and all other commands keep their normal confirmation. The black command panel does not grant permission by itself.

Download a large attachment

A paired remote belonging to you can claim a large-file download link once within 24 hours. The download is encrypted; the key stays in the paired connection. A failed or expired claim needs a new link. Older remotes may receive the file through their existing encrypted connection instead.

这一页的 Markdown 原文This page as Markdown: zh.md · en.md