ListDownloadsTool

Lists files (directories excluded) in the public Downloads directory, sortable by date (default), name, or size via the sort_by param. Requires READ_EXTERNAL_STORAGE on API ≤32; uses File API access on API 33+. Output: files (each {name, size_bytes, last_modified, extension}) capped at the limit param, plus count, sort_by, and directory.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult