MCPOutils MCP/Publications/search_threads_locations
search_threads_locations
Readposts:read
Find a public place to tag a Threads post with. Returns Threads' own place ids: put one on the post as threadsLocationId, with its name as threadsLocationName. This is a place on Threads, not the client's Synup location. q: 2–80 characters; latitude and longitude are optional and go together. Needs the place-tag permission on the connection (see get_threads_capabilities).
Paramètres
connectionIdstringobligatoire
The Threads connection id the post will publish through.
qstringobligatoire
The place's name, e.g. a venue, neighbourhood or city.
latitudenumberfacultatif
Optional. Bias results near this latitude (with longitude).
longitudenumberfacultatif
Optional. Bias results near this longitude (with latitude).
Exemple de requête
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_threads_locations",
"arguments": {
"connectionId": "string",
"q": "string"
}
}
}Exemple de réponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.