diff --git a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx
index 0031dcdde3..d537fa807f 100644
--- a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx
+++ b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx
@@ -158,7 +158,7 @@ const AgentTools: FC = () => {
headerRight={
{tools.filter(item => !!item.enabled).length}/{tools.length} {t('appDebug.agent.tools.enabled')}
- {tools.length < MAX_TOOLS_NUM && (
+ {tools.length < MAX_TOOLS_NUM && !readonly && (
<>
{
>
{getProviderShowName(item)}
{item.tool_label}
- {!item.isDeleted && (
+ {!item.isDeleted && !readonly && (
@@ -212,7 +212,7 @@ const AgentTools: FC = () => {
}
>
-
@@ -246,8 +246,8 @@ const AgentTools: FC = () => {
)}
- {!item.isDeleted && (
-
+ {!item.isDeleted && !readonly && (
+
{!item.notAuthor && (
{
{!item.notAuthor && (
{
const newModelConfig = produce(modelConfig, (draft) => {