@@ -65,7 +65,7 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
65
65
'properties ' => [
66
66
'path ' => [
67
67
'type ' => 'string ' ,
68
- 'description ' => 'Path to the file ' ,
68
+ 'description ' => 'Path to the file, relative to project root. Only files within project directory can be accessed. ' ,
69
69
],
70
70
'encoding ' => [
71
71
'type ' => 'string ' ,
@@ -75,7 +75,7 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
75
75
],
76
76
'required ' => ['path ' ],
77
77
],
78
- 'description ' => 'Read content from a file ' ,
78
+ 'description ' => 'Read content from a file within the project directory structure ' ,
79
79
],
80
80
[
81
81
'name ' => 'file-write ' ,
@@ -84,7 +84,7 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
84
84
'properties ' => [
85
85
'path ' => [
86
86
'type ' => 'string ' ,
87
- 'description ' => 'Relative path to the file like src/file.txt ' ,
87
+ 'description ' => 'Relative path to the file (e.g., " src/file.txt"). Path is resolved against project root. ' ,
88
88
],
89
89
'content ' => [
90
90
'type ' => 'string ' ,
@@ -98,7 +98,7 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
98
98
],
99
99
'required ' => ['path ' , 'content ' ],
100
100
],
101
- 'description ' => 'Write content to a file ' ,
101
+ 'description ' => 'Write content to a file. Can create parent directories automatically. ' ,
102
102
],
103
103
[
104
104
'name ' => 'file-rename ' ,
@@ -107,16 +107,16 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
107
107
'properties ' => [
108
108
'path ' => [
109
109
'type ' => 'string ' ,
110
- 'description ' => 'Current relative path. ' ,
110
+ 'description ' => 'Current relative path of the file/directory. Must exist within project directory . ' ,
111
111
],
112
112
'newPath ' => [
113
113
'type ' => 'string ' ,
114
- 'description ' => 'New relative path ' ,
114
+ 'description ' => 'New relative path for the file/directory. Must remain within project directory. ' ,
115
115
],
116
116
],
117
117
'required ' => ['path ' , 'newPath ' ],
118
118
],
119
- 'description ' => 'Rename a file or directory ' ,
119
+ 'description ' => 'Rename a file or directory. Verifies source exists and destination doesn \' t. ' ,
120
120
],
121
121
[
122
122
'name ' => 'file-move ' ,
@@ -125,11 +125,11 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
125
125
'properties ' => [
126
126
'source ' => [
127
127
'type ' => 'string ' ,
128
- 'description ' => 'Source relative path ' ,
128
+ 'description ' => 'Source relative path of the file to move. Must exist within project directory. ' ,
129
129
],
130
130
'destination ' => [
131
131
'type ' => 'string ' ,
132
- 'description ' => 'Destination relative path ' ,
132
+ 'description ' => 'Destination relative path where file will be moved. Must remain within project directory. ' ,
133
133
],
134
134
'createDirectory ' => [
135
135
'type ' => 'boolean ' ,
@@ -139,7 +139,7 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
139
139
],
140
140
'required ' => ['source ' , 'destination ' ],
141
141
],
142
- 'description ' => 'Move a file to another location ' ,
142
+ 'description ' => 'Move a file to another location. Implemented as copy+delete for safety. ' ,
143
143
],
144
144
[
145
145
'name ' => 'file-info ' ,
@@ -148,12 +148,12 @@ public function __invoke(ServerRequestInterface $request): ListToolsResult
148
148
'properties ' => [
149
149
'path ' => [
150
150
'type ' => 'string ' ,
151
- 'description ' => 'Path to the file or directory ' ,
151
+ 'description ' => 'Path to the file or directory, relative to project root. Returns detailed metadata. ' ,
152
152
],
153
153
],
154
154
'required ' => ['path ' ],
155
155
],
156
- 'description ' => 'Get information about a file or directory ' ,
156
+ 'description ' => 'Get information about a file or directory including type, size, permissions, and modification time. ' ,
157
157
],
158
158
],
159
159
];
0 commit comments