feat: add the create file built-in tool - #1119
Merged
Merged
Conversation
radu-mocanu
force-pushed
the
feat/generate-file-tool
branch
from
September 29, 2026 08:49
118e182 to
fe3c528
Compare
radu-mocanu
marked this pull request as ready for review
September 29, 2026 08:49
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Advanced agents never bind the generated tool to their filesystem backend, so workspace file_path uploads remain unavailable.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds an opt-in generate-file built-in tool for creating job attachments across standard and advanced agents.
Changes:
- Registers configurable file generation with inline or workspace sources.
- Shares the tool with eligible advanced subagents.
- Removes automatic output-file prompting and tool injection behavior.
| File | Description |
|---|---|
pyproject.toml |
Bumps package and UiPath dependency versions. |
uv.lock |
Updates locked dependencies. |
generate_file_tool.py |
Implements the configurable file-generation tool. |
internal_tool_factory.py |
Registers the new internal tool type. |
advanced/agent.py |
Shares parent tools with subagents. |
attachments/output_files.py |
Removes output-file prompting and generalizes validation messages. |
attachments/constants.py |
Removes the legacy fixed tool name. |
test_generate_file_tool.py |
Tests schemas, uploads, paths, and factory behavior. |
test_output_files_node.py |
Updates output verification tests. |
test_output_files.py |
Removes obsolete prompt tests. |
test_subagent_tools.py |
Verifies generate-file propagation to subagents. |
test_payload_handler_middleware.py |
Updates renamed subagent resolution coverage. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
radu-mocanu
force-pushed
the
feat/generate-file-tool
branch
7 times, most recently
from
September 30, 2026 20:11
be81774 to
06ab01d
Compare
radu-mocanu
marked this pull request as draft
September 30, 2026 20:11
radu-mocanu
force-pushed
the
feat/generate-file-tool
branch
3 times, most recently
from
October 1, 2026 13:28
e5e7304 to
d053d63
Compare
radu-mocanu
force-pushed
the
feat/generate-file-tool
branch
from
October 1, 2026 14:07
d053d63 to
9d8a803
Compare
radu-mocanu
marked this pull request as ready for review
October 1, 2026 14:07
| unlinked = await unlinked_output_attachment_ids(fields, output) | ||
| if unlinked: | ||
| return _unlinked_ids_message(unlinked) | ||
| return _unlinked_ids_message(unlinked, file_tool_name) |
Contributor
There was a problem hiding this comment.
what if the job attachment was returned by an RPA, should we still return _unlinked_ids_message?
ionut-mihalache-uipath
approved these changes
Oct 1, 2026
radu-mocanu
force-pushed
the
feat/generate-file-tool
branch
2 times, most recently
from
October 1, 2026 18:25
e3c9ccd to
0273a6d
Compare
radu-mocanu
force-pushed
the
feat/generate-file-tool
branch
from
October 1, 2026 19:14
0273a6d to
cbe8a3b
Compare
radu-mocanu
enabled auto-merge (squash)
October 1, 2026 19:16
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
toolType: "create-file"), then pass the returned reference to another tool or put it in a file output fieldcontentcarries the file body, and advanced agents can also publish a workspace file byfilePathWhy
output files only worked through a hidden tool that was added whenever the output schema had a file field. making it an explicit built-in tool puts the agent author in control and lets files flow into tool inputs as well as outputs.