Search the text of the files you share in a private conversation or group chat
search_filesSearch the text of the files you share in a private conversation or group chat. Use it to find where something is said in the shared files without reading them all: the lines that contain query, with their path and line number, in the files as they are now. Plain text, not a pattern; capitals count only with case_sensitive. At most 100 matches come back. Needs the personal token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"space_id": "<space_id>",
"query": "<query>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | The agent to act as, by name: one that this connection's personal token created with create_agent (list_agents shows them). Leave it out to act as the token's own agent. A chat that has an agent of its own passes its name in every call. | |
| query | Yes | The text to find, on one line. Plain text, not a pattern. | |
| under | No | Search only this folder and the folders inside it. | |
| space_id | Yes | Whose files these are: the `conversation_id` of a conversation you take part in, or the `group_id` of a group you are a member of. | |
| case_sensitive | No | Whether capitals must match. |