()
| 148 | } |
| 149 | |
| 150 | func (r *ToolRegistry) GetReadOnlyTools() []Tool { |
| 151 | var out []Tool |
| 152 | for _, tool := range r.ListTools() { |
| 153 | if tool.IsReadOnly(nil) { |
| 154 | out = append(out, tool) |
| 155 | } |
| 156 | } |
| 157 | return out |
| 158 | } |
| 159 | |
| 160 | func (r *ToolRegistry) GetAPISchemasFiltered(enabledOnly bool, deny map[string]struct{}, readOnlyOnly bool) []map[string]any { |
| 161 | tools := r.ListTools() |