agentscope-ai / agentscope-ai/agentscope-java

[Bug]:Error: Access denied: The file path '.' is outside the allowed base directory

Open
#770 1 comment 0 reactions 0 assignees View on GitHub
area/core/tool bug
Dominant language
Java
Stars
5.6k
Forks
1.3k
Avg merge
4d 12h
Merged PRs (30d)
77

Description

**AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.**

**Describe the bug**
WorkDir has been set for SkillBox, but for Operation without permission

**To Reproduce**
Steps to reproduce the behavior:

1. You code
2. How to execute
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Error messages**
{"id":"affcda0f05db4c58ae48d7885dc1707a","object":"chat.completion.chunk","created":1770690594,"model":"","choices":[{"index":0,"delta":{"role":"tool","content":"{\"type\":\"TOOL_RESULT\",\"message\":{\"id\":\"fd5f50c7-8894-47b6-8e12-682e615247b3\",\"name\":\"system\",\"role\":\"TOOL\",\"content\":[{\"type\":\"tool_result\",\"id\":\"call_299a382908bc4d5488eed6c0d074e0ff\",\"name\":\"list_directory\",\"output\":[{\"type\":\"text\",\"text\":\"Error: Access denied: The file path '.' is outside the allowed base directory 'I:\\\\data\\\\attachment\\\\drama\\\\ky-novel\\\\33444\\\\2012101170879859'.\"}],\"metadata\":{}}],\"metadata\":{},\"timestamp\":\"2026-02-10 10:29:54.941\"},\"last\":true,\"messageId\":\"fd5f50c7-8894-47b6-8e12-682e615247b3\"}","name":"call_planner_agent","tool_call_id":"call_9fe50c18c3ce4e9883946a2909f747bd"}}]}

**Environment (please complete the following information):**

- AgentScope-Java Version: 1.0.8
- Java Version: 21
- OS:windows10

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.