When using the copilot sdk, we want to specify the LargeOutput dir to limit the large output from Tools be saved to specified directory. It works for the main agent, but sometimes subagents are launched, and the subagents will also call MCP Tools, whose large output will be saved to /tmp in Linux.
This is not ideal, because we want all large output to be saved to the specified directory. Our read tools are not allowed to read any directory in the operainng system, if the large output is saved to the default tmp dir (like /tmp in Linux), some customed defined read tools will fail since we only allow them to read specific directory
When using the copilot sdk, we want to specify the LargeOutput dir to limit the large output from Tools be saved to specified directory. It works for the main agent, but sometimes subagents are launched, and the subagents will also call MCP Tools, whose large output will be saved to /tmp in Linux.
This is not ideal, because we want all large output to be saved to the specified directory. Our read tools are not allowed to read any directory in the operainng system, if the large output is saved to the default tmp dir (like /tmp in Linux), some customed defined read tools will fail since we only allow them to read specific directory